]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / traits / associated_type_bound / check-trait-object-bounds-3.stderr
1 error[E0597]: `s` does not live long enough
2 --> $DIR/check-trait-object-bounds-3.rs:15:34
3 |
4 LL | z = f::<dyn X<Y = &str>>(&s);
5 | ---------------------^^-
6 | | |
7 | | borrowed value does not live long enough
8 | argument requires that `s` is borrowed for `'static`
9 LL |
10 LL | }
11 | - `s` 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`.