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

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

25 lines
457 B
Rust
Raw Normal View History

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