summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/issue-13352.stderr
blob: 91885380b1ff1212303cc4282c00ffadcba7776d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>`:
             <usize as Add>
             <usize as Add<&usize>>
             <&'a usize as Add<usize>>
             <&usize as Add<&usize>>

error: aborting due to 1 previous error

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