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