fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
472 B14 linesraw
1error[E0597]: `s` does not live long enough
2  --> $DIR/do-not-ignore-lifetime-bounds-in-copy.rs:8:17
3   |
4LL |     let a = Foo(&s);
5   |                 ^^ borrowed value does not live long enough
6LL |     drop(a);
7   |          - copying this value requires that `s` is borrowed for `'static`
8LL |     drop(a);
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`.