]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/issue-13352.stderr
Rollup merge of #102088 - oli-obk:cleanups, r=bjorn3
[rust.git] / src / test / ui / never_type / issue-13352.stderr
1 error[E0277]: cannot add `()` to `usize`
2   --> $DIR/issue-13352.rs:7:13
3    |
4 LL |     2_usize + (loop {});
5    |             ^ no implementation for `usize + ()`
6    |
7    = help: the trait `Add<()>` is not implemented for `usize`
8    = help: the following other types implement trait `Add<Rhs>`:
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`.