summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/virtual-structs.rs
blob: ce57a3454bb21d6f153331e92df83451e7c03e55 (plain)
1
2
3
4
5
6
7
8
9
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() {}