mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-25 23:26:08 +00:00
10 lines
188 B
Rust
10 lines
188 B
Rust
use std::cell::UnsafeCell;
|
|
|
|
enum Foo { X(UnsafeCell<Option<Foo>>) }
|
|
//~^ ERROR recursive type `Foo` has infinite size
|
|
//~| ERROR cycle detected
|
|
|
|
impl Foo { fn bar(self) {} }
|
|
|
|
fn main() {}
|