]> git.proxmox.com Git - rustc.git/blame - tests/ui/regions/do-not-suggest-adding-bound-to-opaque-type.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / regions / do-not-suggest-adding-bound-to-opaque-type.stderr
CommitLineData
f2b60f7d
FG
1error[E0597]: `x` does not live long enough
2 --> $DIR/do-not-suggest-adding-bound-to-opaque-type.rs:9:7
3 |
9ffffee4
FG
4LL | let x = ();
5 | - binding `x` declared here
f2b60f7d
FG
6LL | S(&x)
7 | --^^-
8 | | |
9 | | borrowed value does not live long enough
10 | opaque type requires that `x` is borrowed for `'static`
11LL | }
12 | - `x` dropped here while still borrowed
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.