]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/normalization.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / nll / user-annotations / normalization.stderr
1 error[E0597]: `a` does not live long enough
2   --> $DIR/normalization.rs:10:31
3    |
4 LL |     let _: <() as Foo>::Out = &a;
5    |            ----------------   ^^ borrowed value does not live long enough
6    |            |
7    |            type annotation requires that `a` is borrowed for `'static`
8 ...
9 LL | }
10    | - `a` dropped here while still borrowed
11
12 error[E0597]: `a` does not live long enough
13   --> $DIR/normalization.rs:13:40
14    |
15 LL |     let _: <&'static () as Foo>::Out = &a;
16    |            -------------------------   ^^ borrowed value does not live long enough
17    |            |
18    |            type annotation requires that `a` is borrowed for `'static`
19 ...
20 LL | }
21    | - `a` dropped here while still borrowed
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0597`.