fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `x` does not live long enough 2 --> $DIR/constant-in-expr-inherent-2.rs:23:9 3 | 4LL | let x = (); 5 | - binding `x` declared here 6LL | FUN(&x); 7 | ----^^- 8 | | | 9 | | borrowed value does not live long enough 10 | argument requires that `x` is borrowed for `'static` 11... 12LL | } 13 | - `x` dropped here while still borrowed 14 15error[E0597]: `x` does not live long enough 16 --> $DIR/constant-in-expr-inherent-2.rs:24:23 17 | 18LL | let x = (); 19 | - binding `x` declared here 20LL | FUN(&x); 21LL | A::ASSOCIATED_FUN(&x); 22 | ------------------^^- 23 | | | 24 | | borrowed value does not live long enough 25 | argument requires that `x` is borrowed for `'static` 26... 27LL | } 28 | - `x` dropped here while still borrowed 29 30error[E0597]: `x` does not live long enough 31 --> $DIR/constant-in-expr-inherent-2.rs:25:28 32 | 33LL | let x = (); 34 | - binding `x` declared here 35... 36LL | B::ALSO_ASSOCIATED_FUN(&x); 37 | -----------------------^^- 38 | | | 39 | | borrowed value does not live long enough 40 | argument requires that `x` is borrowed for `'static` 41LL | <_>::TRAIT_ASSOCIATED_FUN(&x); 42LL | } 43 | - `x` dropped here while still borrowed 44 45error[E0597]: `x` does not live long enough 46 --> $DIR/constant-in-expr-inherent-2.rs:26:31 47 | 48LL | let x = (); 49 | - binding `x` declared here 50... 51LL | <_>::TRAIT_ASSOCIATED_FUN(&x); 52 | --------------------------^^- 53 | | | 54 | | borrowed value does not live long enough 55 | argument requires that `x` is borrowed for `'static` 56LL | } 57 | - `x` dropped here while still borrowed 58 59error: aborting due to 4 previous errors 60 61For more information about this error, try `rustc --explain E0597`.