• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0308]: mismatched types
2  --> tests/ui-msrv/transmute-ref-src-not-a-reference.rs:17:49
3   |
417 | const SRC_NOT_A_REFERENCE: &u8 = 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