blob: 28e63b2d36b114bc6d6b7cd545d0e1da65a316b4 [file] [log] [blame]
error[E0597]: `x` does not live long enough
--> $DIR/issue-30438-c.rs:19:5
|
LL | &x
| ^^ borrowed value does not live long enough
LL | //~^ ERROR: `x` does not live long enough
LL | }
| - `x` dropped here while still borrowed
|
note: borrowed value must be valid for the lifetime 'y as defined on the function body at 17:10...
--> $DIR/issue-30438-c.rs:17:10
|
LL | fn silly<'y, 'z>(_s: &'y Test<'z>) -> &'y <Test<'z> as Trait>::Out where 'z: 'static {
| ^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.