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 00a6797 commit fe06b70Copy full SHA for fe06b70
src/librustc/diagnostics.rs
@@ -362,6 +362,10 @@ 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 }
366
+ ^^^ expected lifetime parameter
367
+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
371
0 commit comments