diff options
Diffstat (limited to 'tests/ui/resolve/token-error-correct-2.rs')
| -rw-r--r-- | tests/ui/resolve/token-error-correct-2.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/resolve/token-error-correct-2.rs b/tests/ui/resolve/token-error-correct-2.rs new file mode 100644 index 00000000000..f7c7d908c78 --- /dev/null +++ b/tests/ui/resolve/token-error-correct-2.rs @@ -0,0 +1,7 @@ +// Test that we do some basic error correction in the tokeniser (and don't ICE). + +fn main() { + if foo { + //~^ ERROR: cannot find value `foo` + ) //~ ERROR: mismatched closing delimiter: `)` +} |
