fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0597]: `s` does not live long enough 2 --> $DIR/do-not-ignore-lifetime-bounds-in-copy-proj.rs:9:18 3 | 4LL | let a = (Foo(&s),); 5 | ^^ borrowed value does not live long enough 6LL | drop(a.0); 7 | --- copying this value requires that `s` is borrowed for `'static` 8LL | drop(a.0); 9LL | } 10 | - `s` dropped here while still borrowed 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0597`.