Auto merge of #28348 - petrochenkov:novirt, r=alexcrichton
Noticed these yesterday while reading libsyntax
This commit is contained in:
commit
eda85fede0
4 changed files with 8 additions and 22 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue