]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0600]: cannot apply unary operator `-` to type `bool` |
0731742a | 2 | --> $DIR/unop-neg-bool.rs:2:5 |
b7449926 XL |
3 | | |
4 | LL | -true; //~ ERROR cannot apply unary operator `-` to type `bool` | |
5 | | ^^^^^ cannot apply unary operator `-` | |
6 | | | |
7 | = note: an implementation of `std::ops::Neg` might be missing for `bool` | |
8 | ||
9 | error: aborting due to previous error | |
10 | ||
11 | For more information about this error, try `rustc --explain E0600`. |