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

10 lines
159 B
Rust
Raw Normal View History

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