1 error[E0106]: missing lifetime specifier
2 --> $DIR/missing-lifetime-in-assoc-const-type.rs:2:14
4 LL | const A: &str = "";
5 | ^ expected named lifetime parameter
7 help: consider introducing a named lifetime parameter
9 LL ~ trait ZstAssert<'a>: Sized {
10 LL ~ const A: &'a str = "";
13 error[E0106]: missing lifetime specifier
14 --> $DIR/missing-lifetime-in-assoc-const-type.rs:3:14
16 LL | const B: S = S { s: &() };
17 | ^ expected named lifetime parameter
19 help: consider introducing a named lifetime parameter
21 LL ~ trait ZstAssert<'a>: Sized {
22 LL | const A: &str = "";
23 LL ~ const B: S<'a> = S { s: &() };
26 error[E0106]: missing lifetime specifier
27 --> $DIR/missing-lifetime-in-assoc-const-type.rs:4:15
29 LL | const C: &'_ str = "";
30 | ^^ expected named lifetime parameter
32 help: consider introducing a named lifetime parameter
34 LL ~ trait ZstAssert<'a>: Sized {
35 LL | const A: &str = "";
36 LL | const B: S = S { s: &() };
37 LL ~ const C: &'a str = "";
40 error[E0106]: missing lifetime specifiers
41 --> $DIR/missing-lifetime-in-assoc-const-type.rs:5:14
43 LL | const D: T = T { a: &(), b: &() };
44 | ^ expected 2 lifetime parameters
46 help: consider introducing a named lifetime parameter
48 LL ~ trait ZstAssert<'a>: Sized {
49 LL | const A: &str = "";
50 LL | const B: S = S { s: &() };
51 LL | const C: &'_ str = "";
52 LL ~ const D: T<'a, 'a> = T { a: &(), b: &() };
55 error: aborting due to 4 previous errors
57 For more information about this error, try `rustc --explain E0106`.