]>
Commit | Line | Data |
---|---|---|
7453a54e | 1 | fn main() { |
1b1a35ee XL |
2 | 1 + Some(1); //~ ERROR cannot add `Option<{integer}>` to `{integer}` |
3 | 2 as usize - Some(1); //~ ERROR cannot subtract `Option<{integer}>` from `usize` | |
2c00a5a8 XL |
4 | 3 * (); //~ ERROR cannot multiply `()` to `{integer}` |
5 | 4 / ""; //~ ERROR cannot divide `{integer}` by `&str` | |
1b1a35ee | 6 | 5 < String::new(); //~ ERROR can't compare `{integer}` with `String` |
8faf50e0 | 7 | 6 == Ok(1); //~ ERROR can't compare `{integer}` with `std::result::Result<{integer}, _>` |
223e47cc | 8 | } |