Auto merge of #28348 - petrochenkov:novirt, r=alexcrichton

Noticed these yesterday while reading libsyntax
This commit is contained in:
bors 2015-09-11 17:58:59 +00:00
commit eda85fede0
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() {}