blob: ade552c4bab41a0dc45c5c500247cce82888300d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0597]: `s` does not live long enough
--> $DIR/check-trait-object-bounds-3.rs:15:34
|
LL | z = f::<dyn X<Y = &str>>(&s);
| ---------------------^^-
| | |
| | borrowed value does not live long enough
| argument requires that `s` is borrowed for `'static`
LL |
LL | }
| - `s` dropped here while still borrowed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.
|