]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / do-not-ignore-lifetime-bounds-in-copy.stderr
1 error[E0597]: `s` does not live long enough
2   --> $DIR/do-not-ignore-lifetime-bounds-in-copy.rs:8:17
3    |
4 LL |     let a = Foo(&s);
5    |                 ^^ borrowed value does not live long enough
6 LL |     drop(a);
7    |          - copying this value requires that `s` is borrowed for `'static`
8 LL |     drop(a);
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`.