summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/class-implements-bad-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/class-implements-bad-trait.rs')
-rw-r--r--tests/ui/parser/class-implements-bad-trait.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/class-implements-bad-trait.rs b/tests/ui/parser/class-implements-bad-trait.rs
new file mode 100644
index 000000000..f2f85d026
--- /dev/null
+++ b/tests/ui/parser/class-implements-bad-trait.rs
@@ -0,0 +1,9 @@
+// error-pattern:nonexistent
+class cat : nonexistent {
+ let meows: usize;
+ new(in_x : usize) { self.meows = in_x; }
+}
+
+fn main() {
+ let nyan = cat(0);
+}