1
0
Fork 0
firefox/third_party/rust/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.stderr
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

12 lines
595 B
Text

error[E0308]: mismatched types
--> tests/ui-msrv/transmute-ref-src-not-a-reference.rs:17:49
|
17 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(0usize);
| ---------------^^^^^^-
| | |
| | expected reference, found `usize`
| | help: consider borrowing here: `&0usize`
| expected due to this
|
= note: expected reference `&_`
found type `usize`