rust/tests/ui/issues/issue-14091-2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
678 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0600]: cannot apply unary operator `!` to type `BytePos`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-14091-2.rs:15:5
2018-07-15 16:11:54 -05:00
|
LL | assert!(x, x);
2021-10-14 13:28:28 -05:00
| ^^^^^^^^^^^^^ cannot apply unary operator `!`
2018-07-15 16:11:54 -05:00
|
note: an implementation of `Not` might be missing for `BytePos`
--> $DIR/issue-14091-2.rs:6:1
|
LL | pub struct BytePos(pub u32);
2022-02-13 09:27:59 -06:00
| ^^^^^^^^^^^^^^^^^^ must implement `Not`
note: the trait `Not` must be implemented
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-07-15 16:11:54 -05:00
error: aborting due to 1 previous error
2018-07-15 16:11:54 -05:00
For more information about this error, try `rustc --explain E0600`.