summary refs log tree commit diff
path: root/src/test/ui/issues/issue-30438-c.stderr
blob: 71c2ed9dfc93593a2740a1d71def0af2556c5680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0597]: `x` does not live long enough
  --> $DIR/issue-30438-c.rs:9:6
   |
LL |     &x
   |      ^ borrowed value does not live long enough
LL |     //~^ ERROR: `x` does not live long enough
LL | }
   | - borrowed value only lives until here
   |
note: borrowed value must be valid for the lifetime 'y as defined on the function body at 7:10...
  --> $DIR/issue-30438-c.rs:7: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`.