Remove some remains of virtual structs from the parser

This commit is contained in:
Vadim Petrochenkov 2015-09-11 10:09:22 +03:00
parent 5f9f0b7cc3
commit 9f1f4c16aa
4 changed files with 8 additions and 22 deletions

View file

@ -11,12 +11,11 @@
// compile-flags: -Z parse-only
// Test diagnostics for the removed struct inheritance feature.
#![feature(struct_inherit)]
virtual struct SuperStruct { //~ ERROR `virtual` structs have been removed from the language
virtual struct SuperStruct { //~ ERROR expected item, found `virtual`
f1: isize,
}
struct Struct : SuperStruct; //~ ERROR `virtual` structs have been removed from the language
struct Struct : SuperStruct;
pub fn main() {}