mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
20 lines
233 B
Rust
20 lines
233 B
Rust
//@ check-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
|
|
|
struct kitten {
|
|
cat: Option<cat>,
|
|
}
|
|
|
|
fn kitten(cat: Option<cat>) -> kitten {
|
|
kitten {
|
|
cat: cat
|
|
}
|
|
}
|
|
|
|
type cat = Box<kitten>;
|
|
|
|
pub fn main() {}
|