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
|
|
|
|
|
2021-09-28 14:48: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`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Not` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
|
2021-02-13 19:52:25 +00:00
|
|
|
= 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
|
|
|
|
2023-11-21 15:44:16 +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`.
|