fix span for errors E0537, E0535 & E0536

This commit is contained in:
Mikhail Modin 2016-09-08 22:02:49 +03:00
parent b2799a56a1
commit fb85dd398b
7 changed files with 29 additions and 5 deletions

View file

@ -0,0 +1,8 @@
error[E0535]: invalid argument
--> $DIR/E0535.rs:11:10
|
11 | #[inline(unknown)] //~ ERROR E0535
| ^^^^^^^
error: aborting due to previous error

View file

@ -0,0 +1,8 @@
error[E0536]: expected 1 cfg-pattern
--> $DIR/E0536.rs:11:7
|
11 | #[cfg(not())] //~ ERROR E0536
| ^^^^^
error: aborting due to previous error

View file

@ -0,0 +1,8 @@
error[E0537]: invalid predicate `unknown`
--> $DIR/E0537.rs:11:7
|
11 | #[cfg(unknown())] //~ ERROR E0537
| ^^^^^^^^^
error: aborting due to previous error