fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `x` does not live long enough 2 --> $DIR/cast_static_lifetime.rs:5:19 3 | 4LL | let x = 22_u32; 5 | - binding `x` declared here 6LL | let y: &u32 = (&x) as &'static u32; 7 | ^^^^---------------- 8 | | 9 | borrowed value does not live long enough 10 | type annotation requires that `x` is borrowed for `'static` 11LL | } 12 | - `x` dropped here while still borrowed 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0597`.