about summary refs log tree commit diff
path: root/tests/ui/resolve/token-error-correct-4.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/token-error-correct-4.fixed')
-rw-r--r--tests/ui/resolve/token-error-correct-4.fixed10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/resolve/token-error-correct-4.fixed b/tests/ui/resolve/token-error-correct-4.fixed
new file mode 100644
index 00000000000..064b9e74e24
--- /dev/null
+++ b/tests/ui/resolve/token-error-correct-4.fixed
@@ -0,0 +1,10 @@
+// run-rustfix
+// Test that we do some basic error correction in the tokeniser and apply suggestions.
+
+fn setsuna(_: ()) {}
+
+fn kazusa() {}
+
+fn main() {
+    setsuna(kazusa()); //~ ERROR: expected one of
+} //~ ERROR: expected expression