about summary refs log tree commit diff
path: root/tests/ui/resolve/token-error-correct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/token-error-correct.rs')
-rw-r--r--tests/ui/resolve/token-error-correct.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/resolve/token-error-correct.rs b/tests/ui/resolve/token-error-correct.rs
new file mode 100644
index 00000000000..4f74df0bf1f
--- /dev/null
+++ b/tests/ui/resolve/token-error-correct.rs
@@ -0,0 +1,9 @@
+// Test that we do some basic error correction in the tokeniser.
+
+fn main() {
+    foo(bar(;
+    //~^ ERROR cannot find function `bar` in this scope
+}
+//~^ ERROR: mismatched closing delimiter: `}`
+
+fn foo(_: usize) {}