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

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

23 lines
226 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));
}