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