mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
9d8ce54428
Closes #450 Closes #510
30 lines
843 B
Rust
30 lines
843 B
Rust
// Test tuple litterals
|
|
|
|
fn foo() {
|
|
let a = (a, a, a, a, a);
|
|
let aaaaaaaaaaaaaaaa = (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaa, aaaaaaaaaaaaaa);
|
|
let aaaaaaaaaaaaaaaaaaaaaa = (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
aaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
aaaa);
|
|
let a = (a,);
|
|
|
|
let b = (// This is a comment
|
|
b, // Comment
|
|
b /* Trailing comment */);
|
|
}
|
|
|
|
fn a() {
|
|
((aaaaaaaa,
|
|
aaaaaaaaaaaaa,
|
|
aaaaaaaaaaaaaaaaa,
|
|
aaaaaaaaaaaaaa,
|
|
aaaaaaaaaaaaaaaa,
|
|
aaaaaaaaaaaaaa),)
|
|
}
|
|
|
|
fn b() {
|
|
((bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb),
|
|
bbbbbbbbbbbbbbbbbb)
|
|
}
|