]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11771.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-11771.stderr
1 error[E0277]: cannot add `()` to `{integer}`
2   --> $DIR/issue-11771.rs:3:7
3    |
4 LL |     1 +
5    |       ^ no implementation for `{integer} + ()`
6    |
7    = help: the trait `Add<()>` is not implemented for `{integer}`
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[E0277]: cannot add `()` to `{integer}`
20   --> $DIR/issue-11771.rs:8:7
21    |
22 LL |     1 +
23    |       ^ no implementation for `{integer} + ()`
24    |
25    = help: the trait `Add<()>` is not implemented for `{integer}`
26    = help: the following other types implement trait `Add<Rhs>`:
27              <&'a f32 as Add<f32>>
28              <&'a f64 as Add<f64>>
29              <&'a i128 as Add<i128>>
30              <&'a i16 as Add<i16>>
31              <&'a i32 as Add<i32>>
32              <&'a i64 as Add<i64>>
33              <&'a i8 as Add<i8>>
34              <&'a isize as Add<isize>>
35            and 48 others
36
37 error: aborting due to 2 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.