2018-10-18 13:26:33 -05:00
|
|
|
error[E0597]: `a` does not live long enough
|
2022-12-25 03:27:14 -06:00
|
|
|
--> $DIR/normalization.rs:10:31
|
2018-10-18 13:26:33 -05:00
|
|
|
|
|
2022-12-25 03:27:14 -06:00
|
|
|
LL | let _: <() as Foo>::Out = &a;
|
2018-10-14 09:12:02 -05:00
|
|
|
| ---------------- ^^ borrowed value does not live long enough
|
|
|
|
| |
|
|
|
|
| type annotation requires that `a` is borrowed for `'static`
|
2022-12-25 03:27:14 -06:00
|
|
|
...
|
2018-10-18 13:26:33 -05:00
|
|
|
LL | }
|
|
|
|
| - `a` dropped here while still borrowed
|
|
|
|
|
2022-12-25 03:27:14 -06:00
|
|
|
error[E0597]: `a` does not live long enough
|
|
|
|
--> $DIR/normalization.rs:13:40
|
|
|
|
|
|
|
|
|
LL | let _: <&'static () as Foo>::Out = &a;
|
|
|
|
| ------------------------- ^^ borrowed value does not live long enough
|
|
|
|
| |
|
|
|
|
| type annotation requires that `a` is borrowed for `'static`
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - `a` dropped here while still borrowed
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-18 13:26:33 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|