mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
22 lines
267 B
Rust
22 lines
267 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_camel_case_types)]
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
struct cat {
|
|
|
|
name : String,
|
|
|
|
}
|
|
|
|
fn cat(in_name: String) -> cat {
|
|
cat {
|
|
name: in_name
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
let _nyan = cat("nyan".to_string());
|
|
}
|