rust/tests/ui/issues/issue-2550.rs

23 lines
224 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
#![allow(non_snake_case)]
// pretty-expanded FIXME #23616
2012-08-16 01:46:55 +00:00
struct C {
x: usize,
2012-09-05 22:58:43 +00:00
}
fn C(x: usize) -> C {
2012-09-05 22:58:43 +00:00
C {
x: x
}
}
fn f<T>(_x: T) {
}
pub fn main() {
f(C(1));
}