fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB39 linesraw
1error[E0277]: cannot add `()` to `{integer}`
2  --> $DIR/issue-11771.rs:3:7
3   |
4LL |     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             <isize as Add>
10             <isize as Add<&isize>>
11             <i8 as Add>
12             <i8 as Add<&i8>>
13             <i16 as Add>
14             <i16 as Add<&i16>>
15             <i32 as Add>
16             <i32 as Add<&i32>>
17           and 48 others
18
19error[E0277]: cannot add `()` to `{integer}`
20  --> $DIR/issue-11771.rs:8:7
21   |
22LL |     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             <isize as Add>
28             <isize as Add<&isize>>
29             <i8 as Add>
30             <i8 as Add<&i8>>
31             <i16 as Add>
32             <i16 as Add<&i16>>
33             <i32 as Add>
34             <i32 as Add<&i32>>
35           and 48 others
36
37error: aborting due to 2 previous errors
38
39For more information about this error, try `rustc --explain E0277`.