about summary refs log tree commit diff
path: root/tests/ui/parser/impl-parsing-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/impl-parsing-2.rs')
-rw-r--r--tests/ui/parser/impl-parsing-2.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/parser/impl-parsing-2.rs b/tests/ui/parser/impl-parsing-2.rs
new file mode 100644
index 00000000000..7a71217b21c
--- /dev/null
+++ b/tests/ui/parser/impl-parsing-2.rs
@@ -0,0 +1,4 @@
+impl ! {} // OK
+
+default unsafe FAIL //~ ERROR expected item, found keyword `unsafe`
+//~^ ERROR `default` is not followed by an item