fix span for errors E0537, E0535 & E0536
This commit is contained in:
parent
b2799a56a1
commit
fb85dd398b
7 changed files with 29 additions and 5 deletions
8
src/test/ui/span/E0535.stderr
Normal file
8
src/test/ui/span/E0535.stderr
Normal 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
|
||||
|
||||
8
src/test/ui/span/E0536.stderr
Normal file
8
src/test/ui/span/E0536.stderr
Normal 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
|
||||
|
||||
8
src/test/ui/span/E0537.stderr
Normal file
8
src/test/ui/span/E0537.stderr
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue