2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 13:02:01 +00:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2015-03-22 20:13:15 +00:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2012-08-16 01:46:55 +00:00
|
|
|
struct cat {
|
2012-03-28 05:08:48 +00:00
|
|
|
|
2014-05-22 23:57:53 +00:00
|
|
|
name : String,
|
2012-03-28 05:08:48 +00:00
|
|
|
|
2012-09-05 22:58:43 +00:00
|
|
|
}
|
|
|
|
|
2014-05-22 23:57:53 +00:00
|
|
|
fn cat(in_name: String) -> cat {
|
2012-09-05 22:58:43 +00:00
|
|
|
cat {
|
|
|
|
name: in_name
|
|
|
|
}
|
2012-03-28 05:08:48 +00:00
|
|
|
}
|
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2014-05-25 10:17:19 +00:00
|
|
|
let _nyan = cat("nyan".to_string());
|
2013-02-14 19:47:00 +00:00
|
|
|
}
|