unary op filter, dereference hint

This commit is contained in:
Roman Stoliar 2018-05-08 22:20:41 +03:00
parent 2f6945c776
commit 56fbc63456
8 changed files with 132 additions and 79 deletions

View file

@ -2,9 +2,7 @@ error[E0600]: cannot apply unary operator `!` to type `&'static str`
--> $DIR/E0600.rs:12:5
|
LL | !"a"; //~ ERROR E0600
| ^^^^
|
= note: an implementation of `std::ops::Not` might be missing for `&'static str`
| ^^^^ cannot apply unary operator `!`
error: aborting due to previous error