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 using the `'static` lifetime
9 LL | const A: &'static str = "";
11 help: consider introducing a named lifetime parameter
13 LL ~ trait ZstAssert<'a>: Sized {
14 LL ~ const A: &'a str = "";
17 error[E0106]: missing lifetime specifier
18 --> $DIR/missing-lifetime-in-assoc-const-type.rs:3:14
20 LL | const B: S = S { s: &() };
21 | ^ expected named lifetime parameter
23 help: consider using the `'static` lifetime
25 LL | const B: S<'static> = S { s: &() };
27 help: consider introducing a named lifetime parameter
29 LL ~ trait ZstAssert<'a>: Sized {
30 LL | const A: &str = "";
31 LL ~ const B: S<'a> = S { s: &() };
34 error[E0106]: missing lifetime specifier
35 --> $DIR/missing-lifetime-in-assoc-const-type.rs:4:15
37 LL | const C: &'_ str = "";
38 | ^^ expected named lifetime parameter
40 help: consider using the `'static` lifetime
42 LL | const C: &'static str = "";
44 help: consider introducing a named lifetime parameter
46 LL ~ trait ZstAssert<'a>: Sized {
47 LL | const A: &str = "";
48 LL | const B: S = S { s: &() };
49 LL ~ const C: &'a str = "";
52 error[E0106]: missing lifetime specifiers
53 --> $DIR/missing-lifetime-in-assoc-const-type.rs:5:14
55 LL | const D: T = T { a: &(), b: &() };
56 | ^ expected 2 lifetime parameters
58 help: consider using the `'static` lifetime
60 LL | const D: T<'static, 'static> = T { a: &(), b: &() };
62 help: consider introducing a named lifetime parameter
64 LL ~ trait ZstAssert<'a>: Sized {
65 LL | const A: &str = "";
66 LL | const B: S = S { s: &() };
67 LL | const C: &'_ str = "";
68 LL ~ const D: T<'a, 'a> = T { a: &(), b: &() };
71 error: aborting due to 4 previous errors
73 For more information about this error, try `rustc --explain E0106`.