rustc: Translate tuple struct constructors
This commit is contained in:
7
src/test/run-pass/tuple-struct-construct.rs
Normal file
7
src/test/run-pass/tuple-struct-construct.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
struct Foo(int, int);
|
||||
|
||||
fn main() {
|
||||
let x = Foo(1, 2);
|
||||
io::println(fmt!("%?", x));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user