]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/user-annotations/normalization.stderr
Auto merge of #55236 - petrochenkov:pfail, r=davidtwco
[rust.git] / src / test / ui / nll / user-annotations / normalization.stderr
1 error[E0597]: `a` does not live long enough
2   --> $DIR/normalization.rs:12:31
3    |
4 LL |     let b: <() as Foo>::Out = &a; //~ ERROR
5    |            ----------------   ^^ borrowed value does not live long enough
6    |            |
7    |            type annotation requires that `a` is borrowed for `'static`
8 LL | }
9    | - `a` dropped here while still borrowed
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0597`.