diff options
Diffstat (limited to 'third_party/rust/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr')
-rw-r--r-- | third_party/rust/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/rust/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr b/third_party/rust/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr new file mode 100644 index 0000000000..0115c791d3 --- /dev/null +++ b/third_party/rust/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr @@ -0,0 +1,11 @@ +error[E0308]: mismatched types + --> tests/ui-stable/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` |