rust/tests/ui/structs-enums/class-str-field.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
267 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
//@ pretty-expanded FIXME #23616
2012-08-16 01:46:55 +00:00
struct cat {
name : String,
2012-09-05 22:58:43 +00:00
}
fn cat(in_name: String) -> cat {
2012-09-05 22:58:43 +00:00
cat {
name: in_name
}
}
pub fn main() {
let _nyan = cat("nyan".to_string());
}