summaryrefslogtreecommitdiffstats
path: root/third_party/rust/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.stderr
blob: 7b7969d5d5fa826cde3d81f72ede5b2667405fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0308]: mismatched types
  --> tests/ui-nightly/transmute-mut-src-immutable.rs:17:37
   |
17 |     let _: &mut u8 = transmute_mut!(&0u8);
   |                      ---------------^^^^-
   |                      |              |
   |                      |              types differ in mutability
   |                      expected due to this
   |
   = note: expected mutable reference `&mut _`
                      found reference `&u8`