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