]> git.lizzy.rs Git - rust.git/blob - src/test/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.stderr
test implied bounds + nested proj oblig
[rust.git] / src / test / ui / implied-bounds / assoc-ty-wf-used-to-get-assoc-ty.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/assoc-ty-wf-used-to-get-assoc-ty.rs:24:31
3    |
4 LL |     let _: &'static u8 = test(&x, &&3);
5    |                          -----^^------
6    |                          |    |
7    |                          |    borrowed value does not live long enough
8    |                          argument requires that `x` is borrowed for `'static`
9 ...
10 LL | }
11    | - `x` dropped here while still borrowed
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.