mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 13:37:37 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
20 lines
231 B
Rust
20 lines
231 B
Rust
//@ run-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() {}
|