We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe06b70 commit d6cdefcCopy full SHA for d6cdefc
src/librustc/diagnostics.rs
@@ -362,9 +362,9 @@ Here are some simple examples of where you'll run into this error:
362
struct Foo { x: &bool } // error
363
struct Foo<'a> { x: &'a bool } // correct
364
365
-struct Bar{ x: Foo }
+struct Bar { x: Foo }
366
^^^ expected lifetime parameter
367
-struct Bar<'a>{ x: Foo<'a> } // correct
+struct Bar<'a> { x: Foo<'a> } // correct
368
369
enum Bar { A(u8), B(&bool), } // error
370
enum Bar<'a> { A(u8), B(&'a bool), } // correct
0 commit comments