rust/tests/ui/structs-enums/tuple-struct-construct.rs

10 lines
143 B
Rust
Raw Normal View History

//@ run-pass
#[allow(dead_code)]
2015-01-28 13:34:18 +00:00
#[derive(Debug)]
struct Foo(isize, isize);
pub fn main() {
let x = Foo(1, 2);
println!("{:?}", x);
}