mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
23 lines
226 B
Rust
23 lines
226 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_snake_case)]
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
struct C {
|
|
x: usize,
|
|
}
|
|
|
|
fn C(x: usize) -> C {
|
|
C {
|
|
x: x
|
|
}
|
|
}
|
|
|
|
fn f<T>(_x: T) {
|
|
}
|
|
|
|
pub fn main() {
|
|
f(C(1));
|
|
}
|