rust/tests/ui/error-codes/E0106.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.4 KiB
Plaintext
Raw Normal View History

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