rustc: Translate tuple struct constructors
This commit is contained in:
parent
ce23a99925
commit
599b4208fb
13 changed files with 193 additions and 49 deletions
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));
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue