summaryrefslogtreecommitdiffstats
path: root/third_party/rust/zerocopy/tests/ui-msrv/transmute-mut-illegal-lifetime.stderr
blob: 5ff7145966fe520ca49d3debcc3194890e72aa62 (plain)
1
2
3
4
5
6
7
8
9
error[E0597]: `x` does not live long enough
  --> tests/ui-msrv/transmute-mut-illegal-lifetime.rs:14:56
   |
14 |     let _: &'static mut u64 = zerocopy::transmute_mut!(&mut x);
   |            ----------------                            ^^^^^^ borrowed value does not live long enough
   |            |
   |            type annotation requires that `x` is borrowed for `'static`
15 | }
   | - `x` dropped here while still borrowed