rust/tests/ui/issues/issue-57271.rs

25 lines
457 B
Rust
Raw Normal View History

2019-10-07 16:24:04 -05:00
// aux-build:issue-57271-lib.rs
extern crate issue_57271_lib;
use issue_57271_lib::BaseType;
2022-08-15 14:11:11 -05:00
pub enum ObjectType { //~ ERROR recursive types `ObjectType` and `TypeSignature` have infinite size
2019-10-07 16:24:04 -05:00
Class(ClassTypeSignature),
Array(TypeSignature),
TypeVariable(()),
}
pub struct ClassTypeSignature {
pub package: (),
pub class: (),
pub inner: (),
}
2022-08-15 14:11:11 -05:00
pub enum TypeSignature {
2019-10-07 16:24:04 -05:00
Base(BaseType),
Object(ObjectType),
}
fn main() {}