mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Add parser test
This commit is contained in:
parent
fae0be5d50
commit
0f35c0c672
8
src/test/ui/track-diagnostics/track5.rs
Normal file
8
src/test/ui/track-diagnostics/track5.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// compile-flags: -Z track-diagnostics
|
||||
// error-pattern: created at
|
||||
|
||||
// Normalize the emitted location so this doesn't need
|
||||
// updating everytime someone adds or removes a line.
|
||||
// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
|
||||
|
||||
}
|
9
src/test/ui/track-diagnostics/track5.stderr
Normal file
9
src/test/ui/track-diagnostics/track5.stderr
Normal file
@ -0,0 +1,9 @@
|
||||
error: unexpected closing delimiter: `}`
|
||||
--> $DIR/track5.rs:LL:CC
|
||||
|
|
||||
LL | }
|
||||
| ^ unexpected closing delimiter
|
||||
-Ztrack-diagnostics: created at compiler/rustc_parse/src/lexer/tokentrees.rs:LL:CC
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
Reference in New Issue
Block a user