rust/tests/ui/never_type/issue-13352.stderr
2024-06-12 12:34:47 +00:00

17 lines
583 B
Plaintext

error[E0277]: cannot add `()` to `usize`
--> $DIR/issue-13352.rs:7:13
|
LL | 2_usize + (loop {});
| ^ no implementation for `usize + ()`
|
= help: the trait `Add<()>` is not implemented for `usize`
= help: the following other types implement trait `Add<Rhs>`:
`&'a usize` implements `Add<usize>`
`&usize` implements `Add<&usize>`
`usize` implements `Add<&usize>`
`usize` implements `Add`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.