]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/multiline-span-simple.stderr
Dedup logic and improve output for other types that impl trait
[rust.git] / src / test / ui / span / multiline-span-simple.stderr
1 error[E0277]: cannot add `()` to `u32`
2   --> $DIR/multiline-span-simple.rs:13:18
3    |
4 LL |     foo(1 as u32 +
5    |                  ^ no implementation for `u32 + ()`
6    |
7    = help: the trait `Add<()>` is not implemented for `u32`
8    = help: the following other types implement trait `Add`:
9              <&'a f32 as Add<f32>>
10              <&'a f64 as Add<f64>>
11              <&'a i128 as Add<i128>>
12              <&'a i16 as Add<i16>>
13              <&'a i32 as Add<i32>>
14              <&'a i64 as Add<i64>>
15              <&'a i8 as Add<i8>>
16              <&'a isize as Add<isize>>
17            and 48 others
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.