]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unop-neg-bool.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / unop-neg-bool.stderr
CommitLineData
b7449926 1error[E0600]: cannot apply unary operator `-` to type `bool`
0731742a 2 --> $DIR/unop-neg-bool.rs:2:5
b7449926
XL
3 |
4LL | -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
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0600`.