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 21:11:54 +00:00
error[E0600]: cannot apply unary operator `!` to type `BytePos`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-14091-2.rs:15:5
2018-07-15 21:11:54 +00:00
|
LL | assert!(x, x);
2021-10-14 18:28:28 +00:00
| ^^^^^^^^^^^^^ cannot apply unary operator `!`
2018-07-15 21:11:54 +00: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 15:27:59 +00: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 21:11:54 +00:00
error: aborting due to 1 previous error
2018-07-15 21:11:54 +00:00
For more information about this error, try `rustc --explain E0600`.