Debian Codegraph @

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

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