• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0308]: mismatched types
2  --> tests/ui-stable/transmute-ref-src-not-a-reference.rs:17:49
3   |
417 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(0usize);
5   |                                  ---------------^^^^^^-
6   |                                  |              |
7   |                                  |              expected `&_`, found `usize`
8   |                                  expected due to this
9   |
10   = note: expected reference `&_`
11                   found type `usize`
12help: consider borrowing here
13   |
1417 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(&0usize);
15   |                                                 +
16