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