mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
11 lines
177 B
Rust
11 lines
177 B
Rust
//@ run-pass
|
|
|
|
#![deny(dead_code)]
|
|
|
|
fn main() {
|
|
struct Foo<T> { x: T }
|
|
type Bar = Foo<u32>;
|
|
let spam = |Bar { x }| x != 0;
|
|
println!("{}", spam(Foo { x: 10 }));
|
|
}
|