mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 11:37:50 +00:00
11 lines
187 B
Rust
11 lines
187 B
Rust
use std::marker;
|
|
|
|
enum E1 { V1(E2<E1>), }
|
|
enum E2<T> { V2(E2<E1>, marker::PhantomData<T>), }
|
|
//~^ ERROR recursive type `E2` has infinite size
|
|
|
|
impl E1 { fn foo(&self) {} }
|
|
|
|
fn main() {
|
|
}
|