rust/tests/ui/structs-enums/issue-3008-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
140 B
Rust
Raw Normal View History

enum Foo {
Foo_(Bar)
}
enum Bar {
//~^ ERROR recursive type `Bar` has infinite size
BarNone,
BarSome(Bar)
}
fn main() {
}