rust/tests/target/tuple.rs

30 lines
844 B
Rust
Raw Normal View History

2015-05-25 15:14:05 -05:00
// Test tuple litterals
fn foo() {
let a = (a, a, a, a, a);
2015-05-30 09:44:07 -05:00
let aaaaaaaaaaaaaaaa = (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaa, aaaaaaaaaaaaaa);
2015-05-25 15:14:05 -05:00
let aaaaaaaaaaaaaaaaaaaaaa = (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
2015-05-30 09:44:07 -05:00
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
2015-05-25 15:14:05 -05:00
aaaaaaaaaaaaaaaaaaaaaaaaa,
aaaa);
2015-05-30 09:52:46 -05:00
let a = (a,);
2015-06-23 08:58:58 -05:00
let b = (// This is a comment
b, // Comment
b /* Trailing comment */);
2015-05-25 15:14:05 -05:00
}
fn a() {
((aaaaaaaa,
aaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaa),)
}
fn b() {
((bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb),
bbbbbbbbbbbbbbbbbb)
}