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