]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/virtual-structs.rs
Auto merge of #57101 - o01eg:fix-57014, r=alexcrichton
[rust.git] / src / test / ui / parser / virtual-structs.rs
1 // compile-flags: -Z parse-only
2
3 // Test diagnostics for the removed struct inheritance feature.
4
5 virtual struct SuperStruct {
6 //~^ ERROR expected item, found reserved keyword `virtual`
7     f1: isize,
8 }
9
10 struct Struct : SuperStruct;
11
12 pub fn main() {}