]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0106.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0106.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/E0106.rs:2:8
3    |
4 LL |     x: &bool,
5    |        ^ expected named lifetime parameter
6    |
7 help: consider introducing a named lifetime parameter
8    |
9 LL ~ struct Foo<'a> {
10 LL ~     x: &'a bool,
11    |
12
13 error[E0106]: missing lifetime specifier
14   --> $DIR/E0106.rs:7:7
15    |
16 LL |     B(&bool),
17    |       ^ expected named lifetime parameter
18    |
19 help: consider introducing a named lifetime parameter
20    |
21 LL ~ enum Bar<'a> {
22 LL |     A(u8),
23 LL ~     B(&'a bool),
24    |
25
26 error[E0106]: missing lifetime specifier
27   --> $DIR/E0106.rs:17:10
28    |
29 LL |     baz: Baz,
30    |          ^^^ expected named lifetime parameter
31    |
32 help: consider introducing a named lifetime parameter
33    |
34 LL ~ struct Quux<'a> {
35 LL ~     baz: Baz<'a>,
36    |
37
38 error[E0106]: missing lifetime specifiers
39   --> $DIR/E0106.rs:20:11
40    |
41 LL |     buzz: Buzz,
42    |           ^^^^ expected 2 lifetime parameters
43    |
44 help: consider introducing a named lifetime parameter
45    |
46 LL ~ struct Quux<'a> {
47 LL |     baz: Baz,
48 LL |
49 LL |
50 LL ~     buzz: Buzz<'a, 'a>,
51    |
52
53 error[E0106]: missing lifetime specifier
54   --> $DIR/E0106.rs:10:14
55    |
56 LL | type MyStr = &str;
57    |              ^ expected named lifetime parameter
58    |
59 help: consider introducing a named lifetime parameter
60    |
61 LL | type MyStr<'a> = &'a str;
62    |           ++++    ++
63
64 error: aborting due to 5 previous errors
65
66 For more information about this error, try `rustc --explain E0106`.