]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unop-neg-bool.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / unop-neg-bool.stderr
1 error[E0600]: cannot apply unary operator `-` to type `bool`
2   --> $DIR/unop-neg-bool.rs:2:5
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`.