]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mismatched_types/binops.stderr
New upstream version 1.18.0+dfsg1
[rustc.git] / src / test / ui / mismatched_types / binops.stderr
CommitLineData
cc61c64b
XL
1error[E0277]: the trait bound `{integer}: std::ops::Add<std::option::Option<{integer}>>` is not satisfied
2 --> $DIR/binops.rs:12:5
3 |
412 | 1 + Some(1);
5 | ^^^^^^^^^^^ the trait `std::ops::Add<std::option::Option<{integer}>>` is not implemented for `{integer}`
6 |
7 = note: no implementation for `{integer} + std::option::Option<{integer}>`
8
9error[E0277]: the trait bound `usize: std::ops::Sub<std::option::Option<{integer}>>` is not satisfied
10 --> $DIR/binops.rs:13:5
11 |
1213 | 2 as usize - Some(1);
13 | ^^^^^^^^^^^^^^^^^^^^ the trait `std::ops::Sub<std::option::Option<{integer}>>` is not implemented for `usize`
14 |
15 = note: no implementation for `usize - std::option::Option<{integer}>`
16
17error[E0277]: the trait bound `{integer}: std::ops::Mul<()>` is not satisfied
18 --> $DIR/binops.rs:14:5
19 |
2014 | 3 * ();
21 | ^^^^^^ the trait `std::ops::Mul<()>` is not implemented for `{integer}`
22 |
23 = note: no implementation for `{integer} * ()`
24
25error[E0277]: the trait bound `{integer}: std::ops::Div<&str>` is not satisfied
26 --> $DIR/binops.rs:15:5
27 |
2815 | 4 / "";
29 | ^^^^^^ the trait `std::ops::Div<&str>` is not implemented for `{integer}`
30 |
31 = note: no implementation for `{integer} / &str`
32
33error[E0277]: the trait bound `{integer}: std::cmp::PartialEq<std::string::String>` is not satisfied
34 --> $DIR/binops.rs:16:5
35 |
3616 | 5 < String::new();
37 | ^^^^^^^^^^^^^^^^^ the trait `std::cmp::PartialEq<std::string::String>` is not implemented for `{integer}`
38 |
39 = note: can't compare `{integer}` with `std::string::String`
40
41error[E0277]: the trait bound `{integer}: std::cmp::PartialOrd<std::string::String>` is not satisfied
42 --> $DIR/binops.rs:16:5
43 |
4416 | 5 < String::new();
45 | ^^^^^^^^^^^^^^^^^ the trait `std::cmp::PartialOrd<std::string::String>` is not implemented for `{integer}`
46 |
47 = note: can't compare `{integer}` with `std::string::String`
48
49error[E0277]: the trait bound `{integer}: std::cmp::PartialEq<std::result::Result<{integer}, _>>` is not satisfied
50 --> $DIR/binops.rs:17:5
51 |
5217 | 6 == Ok(1);
53 | ^^^^^^^^^^ the trait `std::cmp::PartialEq<std::result::Result<{integer}, _>>` is not implemented for `{integer}`
54 |
55 = note: can't compare `{integer}` with `std::result::Result<{integer}, _>`
56
57error: aborting due to 7 previous errors
58