Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.stderr

raw
1 error[E0308]: mismatched types
2 --> tests/ui-msrv/transmute-ref-src-dst-not-references.rs:17:54
3 |
4 17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
5 | ---------------^^^^^^-
6 | | |
7 | | expected reference, found `usize`
8 | | help: consider borrowing here: `&0usize`
9 | expected due to this
10 |
11 = note: expected reference `&_`
12 found type `usize`
13
14 error[E0308]: mismatched types
15 --> tests/ui-msrv/transmute-ref-src-dst-not-references.rs:17:39
16 |
17 17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
18 | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found reference
19 |
20 = note: expected type `usize`
21 found reference `&_`
22 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
23
24 error[E0308]: mismatched types
25 --> tests/ui-msrv/transmute-ref-src-dst-not-references.rs:17:39
26 |
27 17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
28 | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found reference
29 |
30 = note: expected type `usize`
31 found reference `&_`
32 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34 error[E0308]: mismatched types
35 --> tests/ui-msrv/transmute-ref-src-dst-not-references.rs:17:39
36 |
37 17 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
38 | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found reference
39 |
40 = note: expected type `usize`
41 found reference `&_`
42 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)