summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/virtual-structs.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/virtual-structs.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/parser/virtual-structs.rs b/src/test/ui/parser/virtual-structs.rs
new file mode 100644
index 000000000..ce57a3454
--- /dev/null
+++ b/src/test/ui/parser/virtual-structs.rs
@@ -0,0 +1,10 @@
+// Test diagnostics for the removed struct inheritance feature.
+
+virtual struct SuperStruct {
+//~^ ERROR expected item, found reserved keyword `virtual`
+ f1: isize,
+}
+
+struct Struct : SuperStruct;
+
+pub fn main() {}