1 error[E0597]: `x` does not live long enough
2 --> $DIR/constant-in-expr-inherent-2.rs:23:9
7 | | borrowed value does not live long enough
8 | argument requires that `x` is borrowed for `'static`
11 | - `x` dropped here while still borrowed
13 error[E0597]: `x` does not live long enough
14 --> $DIR/constant-in-expr-inherent-2.rs:24:23
16 LL | A::ASSOCIATED_FUN(&x);
17 | ------------------^^-
19 | | borrowed value does not live long enough
20 | argument requires that `x` is borrowed for `'static`
23 | - `x` dropped here while still borrowed
25 error[E0597]: `x` does not live long enough
26 --> $DIR/constant-in-expr-inherent-2.rs:25:28
28 LL | B::ALSO_ASSOCIATED_FUN(&x);
29 | -----------------------^^-
31 | | borrowed value does not live long enough
32 | argument requires that `x` is borrowed for `'static`
33 LL | <_>::TRAIT_ASSOCIATED_FUN(&x);
35 | - `x` dropped here while still borrowed
37 error[E0597]: `x` does not live long enough
38 --> $DIR/constant-in-expr-inherent-2.rs:26:31
40 LL | <_>::TRAIT_ASSOCIATED_FUN(&x);
41 | --------------------------^^-
43 | | borrowed value does not live long enough
44 | argument requires that `x` is borrowed for `'static`
46 | - `x` dropped here while still borrowed
48 error: aborting due to 4 previous errors
50 For more information about this error, try `rustc --explain E0597`.