summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/removed-syntax-static-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/removed-syntax-static-fn.rs')
-rw-r--r--tests/ui/parser/removed-syntax-static-fn.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/removed-syntax-static-fn.rs b/tests/ui/parser/removed-syntax-static-fn.rs
new file mode 100644
index 000000000..cd643b874
--- /dev/null
+++ b/tests/ui/parser/removed-syntax-static-fn.rs
@@ -0,0 +1,10 @@
+struct S;
+
+impl S {
+ static fn f() {}
+ //~^ ERROR expected identifier, found keyword `fn`
+ //~| ERROR expected one of `:`, `;`, or `=`
+ //~| ERROR missing type for `static` item
+}
+
+fn main() {}