]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0106.stderr
New upstream version 1.64.0+dfsg1
[rustc.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:10:14
28 |
29 LL | type MyStr = &str;
30 | ^ expected named lifetime parameter
31 |
32 help: consider introducing a named lifetime parameter
33 |
34 LL | type MyStr<'a> = &'a str;
35 | ++++ ++
36
37 error[E0106]: missing lifetime specifier
38 --> $DIR/E0106.rs:17:10
39 |
40 LL | baz: Baz,
41 | ^^^ expected named lifetime parameter
42 |
43 help: consider introducing a named lifetime parameter
44 |
45 LL ~ struct Quux<'a> {
46 LL ~ baz: Baz<'a>,
47 |
48
49 error[E0106]: missing lifetime specifiers
50 --> $DIR/E0106.rs:20:11
51 |
52 LL | buzz: Buzz,
53 | ^^^^ expected 2 lifetime parameters
54 |
55 help: consider introducing a named lifetime parameter
56 |
57 LL ~ struct Quux<'a> {
58 LL | baz: Baz,
59 LL |
60 LL |
61 LL ~ buzz: Buzz<'a, 'a>,
62 |
63
64 error: aborting due to 5 previous errors
65
66 For more information about this error, try `rustc --explain E0106`.