.cargo/vendor/zerocopy/tests/ui-stable/transmute-ref-illegal-lifetime.stderr
raw| 1 | error[E0597]: `x` does not live long enough |
| 2 | --> tests/ui-stable/transmute-ref-illegal-lifetime.rs:14:52 |
| 3 | | |
| 4 | 12 | let x = 0u64; |
| 5 | | - binding `x` declared here |
| 6 | 13 | // It is illegal to increase the lifetime scope. |
| 7 | 14 | let _: &'static u64 = zerocopy::transmute_ref!(&x); |
| 8 | | ------------ ^^ borrowed value does not live long enough |
| 9 | | | |
| 10 | | type annotation requires that `x` is borrowed for `'static` |
| 11 | 15 | } |
| 12 | | - `x` dropped here while still borrowed |