11// Error messages for EXXXX errors.
2- // Each message should start and end with a new line, and be wrapped to 80 characters.
3- // In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.
4- register_long_diagnostics ! {
2+ // Each message should start and end with a new line, and be wrapped to 80
3+ // characters. In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use
4+ // `:set tw=0` to disable.
5+ syntax:: register_diagnostics! {
56E0038 : r##"
67Trait objects like `Box<Trait>` can only be constructed when certain
78requirements are satisfied by the trait in question.
@@ -2206,7 +2207,8 @@ register_diagnostics! {
22062207// E0305, // expected constant
22072208 E0311 , // thing may not live long enough
22082209 E0312 , // lifetime of reference outlives lifetime of borrowed content
2209- E0313 , // lifetime of borrowed pointer outlives lifetime of captured variable
2210+ E0313 , // lifetime of borrowed pointer outlives lifetime of captured
2211+ // variable
22102212 E0314 , // closure outlives stack frame
22112213 E0315 , // cannot invoke closure outside of its lifetime
22122214 E0316 , // nested quantification of lifetimes
@@ -2223,12 +2225,13 @@ register_diagnostics! {
22232225 E0483 , // lifetime of operand does not outlive the operation
22242226 E0484 , // reference is not valid at the time of borrow
22252227 E0485 , // automatically reference is not valid at the time of borrow
2226- E0486 , // type of expression contains references that are not valid during...
2228+ E0486 , // type of expression contains references that are not valid during..
22272229 E0487 , // unsafe use of destructor: destructor might be called while...
22282230 E0488 , // lifetime of variable does not enclose its declaration
22292231 E0489 , // type/lifetime parameter not in scope here
22302232 E0490 , // a value of type `..` is borrowed for too long
2231- E0495 , // cannot infer an appropriate lifetime due to conflicting requirements
2233+ E0495 , // cannot infer an appropriate lifetime due to conflicting
2234+ // requirements
22322235 E0566 , // conflicting representation hints
22332236 E0623 , // lifetime mismatch where both parameters are anonymous regions
22342237 E0628 , // generators cannot have explicit parameters
@@ -2239,7 +2242,8 @@ register_diagnostics! {
22392242 E0688 , // in-band lifetimes cannot be mixed with explicit lifetime binders
22402243 E0697 , // closures cannot be static
22412244 E0707 , // multiple elided lifetimes used in arguments of `async fn`
2242- E0708 , // `async` non-`move` closures with parameters are not currently supported
2245+ E0708 , // `async` non-`move` closures with parameters are not currently
2246+ // supported
22432247 E0709 , // multiple different lifetimes used in arguments of `async fn`
22442248 E0710 , // an unknown tool name found in scoped lint
22452249 E0711 , // a feature has been declared with conflicting stability attributes
0 commit comments