add expected error comment

Co-Authored-By: csmoe <csmoe@msn.com>
This commit is contained in:
Esteban Kuber 2018-10-23 09:03:35 +08:00 committed by GitHub
parent 82b86e53e0
commit 81a609bd4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ LL | #[cfg(a = 10)] //~ ERROR literal in `cfg` predicate value must be a string
error[E0565]: literal in `cfg` predicate value must be a string
--> $DIR/cfg-attr-syntax-validation.rs:25:11
|
LL | #[cfg(a = b"hi")]
LL | #[cfg(a = b"hi")] //~ ERROR literal in `cfg` predicate value must be a string
| ^^^^^ help: consider removing the prefix: `"hi"`
error: `cfg` is not a well-formed meta-item