]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/coercion-generic-regions.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / traits / coercion-generic-regions.stderr
1 error[E0597]: `person` does not live long enough
2 --> $DIR/coercion-generic-regions.rs:17:24
3 |
4 LL | let person: &str = &person;
5 | ^^^^^^^
6 | |
7 | borrowed value does not live long enough
8 | assignment requires that `person` is borrowed for `'static`
9 LL | let s: Box<dyn Trait<&'static str>> = Box::new(Struct { person: person });
10 LL | }
11 | - `person` dropped here while still borrowed
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.