Report fatal lexer errors in --cfg command line arguments
This commit is contained in:
parent
ed937594d3
commit
041212f8fb
5 changed files with 37 additions and 7 deletions
5
src/test/ui/conditional-compilation/cfg-arg-invalid-7.rs
Normal file
5
src/test/ui/conditional-compilation/cfg-arg-invalid-7.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Regression test for issue #89358.
|
||||
|
||||
// compile-flags: --cfg a"
|
||||
// error-pattern: unterminated double quote string
|
||||
// error-pattern: this error occurred on the command line
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
error[E0765]: unterminated double quote string
|
||||
|
|
||||
= note: this error occurred on the command line: `--cfg=a"`
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue