]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/issue-13352.stderr
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / 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 usize as Add<usize>>
10              <&usize as Add<&usize>>
11              <usize as Add<&usize>>
12              <usize as Add>
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.