]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/virtual-structs.rs
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / test / ui / parser / virtual-structs.rs
1 // Test diagnostics for the removed struct inheritance feature.
2
3 virtual struct SuperStruct {
4 //~^ ERROR expected item, found reserved keyword `virtual`
5     f1: isize,
6 }
7
8 struct Struct : SuperStruct;
9
10 pub fn main() {}