]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-14091-2.stderr
Rollup merge of #98654 - nnethercote:pest-2.1.3-opt, r=pnkfelix
[rust.git] / src / test / ui / issues / issue-14091-2.stderr
1 error[E0600]: cannot apply unary operator `!` to type `BytePos`
2   --> $DIR/issue-14091-2.rs:15:5
3    |
4 LL |     assert!(x, x);
5    |     ^^^^^^^^^^^^^ cannot apply unary operator `!`
6    |
7 note: an implementation of `Not` might be missing for `BytePos`
8   --> $DIR/issue-14091-2.rs:6:1
9    |
10 LL | pub struct BytePos(pub u32);
11    | ^^^^^^^^^^^^^^^^^^ must implement `Not`
12 note: the following trait must be implemented
13   --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
14    |
15 LL | pub trait Not {
16    | ^^^^^^^^^^^^^
17    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0600`.