mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
25 lines
458 B
Rust
25 lines
458 B
Rust
//@ aux-build:issue-57271-lib.rs
|
|
|
|
extern crate issue_57271_lib;
|
|
|
|
use issue_57271_lib::BaseType;
|
|
|
|
pub enum ObjectType { //~ ERROR recursive types `ObjectType` and `TypeSignature` have infinite size
|
|
Class(ClassTypeSignature),
|
|
Array(TypeSignature),
|
|
TypeVariable(()),
|
|
}
|
|
|
|
pub struct ClassTypeSignature {
|
|
pub package: (),
|
|
pub class: (),
|
|
pub inner: (),
|
|
}
|
|
|
|
pub enum TypeSignature {
|
|
Base(BaseType),
|
|
Object(ObjectType),
|
|
}
|
|
|
|
fn main() {}
|