]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.stderr
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / nll / do-not-ignore-lifetime-bounds-in-copy-proj.stderr
1 error[E0597]: `s` does not live long enough
2   --> $DIR/do-not-ignore-lifetime-bounds-in-copy-proj.rs:9:18
3    |
4 LL |     let a = (Foo(&s),);
5    |                  ^^ borrowed value does not live long enough
6 LL |     drop(a.0);
7    |          --- copying this value requires that `s` is borrowed for `'static`
8 LL |     drop(a.0);
9 LL | }
10    | - `s` dropped here while still borrowed
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.