about summary refs log tree commit diff
path: root/tests/ui/impl-trait/non-defining-uses/avoid-inference-constraints-from-blanket-2.next.stderr
blob: 86ac1bdad0416cd7a39ce974ea4020be314369a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0308]: mismatched types
  --> $DIR/avoid-inference-constraints-from-blanket-2.rs:27:18
   |
LL |     let _: u32 = x;
   |            ---   ^ expected `u32`, found `u64`
   |            |
   |            expected due to this
   |
help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
   |
LL |     let _: u32 = x.try_into().unwrap();
   |                   ++++++++++++++++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.