2018-02-08 03:35:35 +00:00
|
|
|
error[E0106]: missing lifetime specifier
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0106.rs:2:8
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | x: &bool,
|
2020-01-16 02:35:48 +00:00
|
|
|
| ^ expected named lifetime parameter
|
|
|
|
|
|
2020-01-17 06:05:31 +00:00
|
|
|
help: consider introducing a named lifetime parameter
|
2020-01-16 02:35:48 +00:00
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL ~ struct Foo<'a> {
|
|
|
|
LL ~ x: &'a bool,
|
2020-01-16 02:35:48 +00:00
|
|
|
|
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifier
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0106.rs:7:7
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | B(&bool),
|
2020-01-16 02:35:48 +00:00
|
|
|
| ^ expected named lifetime parameter
|
|
|
|
|
|
2020-01-17 06:05:31 +00:00
|
|
|
help: consider introducing a named lifetime parameter
|
2020-01-16 02:35:48 +00:00
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL ~ enum Bar<'a> {
|
2020-01-16 02:35:48 +00:00
|
|
|
LL | A(u8),
|
2021-06-22 02:07:19 +00:00
|
|
|
LL ~ B(&'a bool),
|
2020-01-16 02:35:48 +00:00
|
|
|
|
|
2018-02-08 03:35:35 +00:00
|
|
|
|
2022-06-05 16:33:09 +00:00
|
|
|
error[E0106]: missing lifetime specifier
|
|
|
|
--> $DIR/E0106.rs:10:14
|
|
|
|
|
|
|
|
|
LL | type MyStr = &str;
|
|
|
|
| ^ expected named lifetime parameter
|
|
|
|
|
|
|
|
|
help: consider introducing a named lifetime parameter
|
|
|
|
|
|
|
|
|
LL | type MyStr<'a> = &'a str;
|
|
|
|
| ++++ ++
|
|
|
|
|
2018-02-08 03:35:35 +00:00
|
|
|
error[E0106]: missing lifetime specifier
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0106.rs:17:10
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | baz: Baz,
|
2020-01-16 02:35:48 +00:00
|
|
|
| ^^^ expected named lifetime parameter
|
|
|
|
|
|
2020-01-17 06:05:31 +00:00
|
|
|
help: consider introducing a named lifetime parameter
|
2020-01-16 02:35:48 +00:00
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL ~ struct Quux<'a> {
|
|
|
|
LL ~ baz: Baz<'a>,
|
2020-01-16 02:35:48 +00:00
|
|
|
|
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifiers
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0106.rs:20:11
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | buzz: Buzz,
|
2018-02-08 03:35:35 +00:00
|
|
|
| ^^^^ expected 2 lifetime parameters
|
2020-08-11 20:02:14 +00:00
|
|
|
|
|
|
|
|
help: consider introducing a named lifetime parameter
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL ~ struct Quux<'a> {
|
2020-08-11 20:02:14 +00:00
|
|
|
LL | baz: Baz,
|
|
|
|
LL |
|
|
|
|
LL |
|
2021-06-22 02:07:19 +00:00
|
|
|
LL ~ buzz: Buzz<'a, 'a>,
|
2020-08-11 20:02:14 +00:00
|
|
|
|
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0106`.
|