fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
487 B14 linesraw
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`.