aboutsummaryrefslogtreecommitdiff
path: root/tests/ui-msrv/transmute-size-increase.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui-msrv/transmute-size-increase.stderr')
-rw-r--r--tests/ui-msrv/transmute-size-increase.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui-msrv/transmute-size-increase.stderr b/tests/ui-msrv/transmute-size-increase.stderr
new file mode 100644
index 0000000..865d0ca
--- /dev/null
+++ b/tests/ui-msrv/transmute-size-increase.stderr
@@ -0,0 +1,9 @@
+error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
+ --> tests/ui-msrv/transmute-size-increase.rs:19:29
+ |
+19 | const INCREASE_SIZE: AU16 = transmute!(0u8);
+ | ^^^^^^^^^^^^^^^
+ |
+ = note: source type: `u8` (8 bits)
+ = note: target type: `AU16` (16 bits)
+ = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)