]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-30438-c.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-30438-c.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/issue-30438-c.rs:9:6
3    |
4 LL |     &x
5    |      ^ borrowed value does not live long enough
6 LL |     //~^ ERROR: `x` does not live long enough
7 LL | }
8    | - borrowed value only lives until here
9    |
10 note: borrowed value must be valid for the lifetime 'y as defined on the function body at 7:10...
11   --> $DIR/issue-30438-c.rs:7:10
12    |
13 LL | fn silly<'y, 'z>(_s: &'y Test<'z>) -> &'y <Test<'z> as Trait>::Out where 'z: 'static {
14    |          ^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0597`.