mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
Update tests
This commit is contained in:
parent
fd10d25680
commit
74834c3f7f
@ -80,11 +80,7 @@ fn arrays() {
|
||||
0,
|
||||
];
|
||||
|
||||
let y = [
|
||||
/* comment */ 1,
|
||||
2, /* post comment */
|
||||
3,
|
||||
];
|
||||
let y = [/* comment */ 1, 2 /* post comment */, 3];
|
||||
|
||||
let xy = [
|
||||
strukt {
|
||||
|
@ -208,12 +208,7 @@ fn arrays() {
|
||||
0,
|
||||
];
|
||||
|
||||
let y = [
|
||||
// comment
|
||||
1,
|
||||
2, // post comment
|
||||
3,
|
||||
];
|
||||
let y = [/* comment */ 1, 2 /* post comment */, 3];
|
||||
|
||||
let xy = [
|
||||
strukt {
|
||||
|
@ -25,11 +25,7 @@ fn weird_comment(
|
||||
// Does this work?
|
||||
y: World,
|
||||
) {
|
||||
simple(
|
||||
// does this preserve comments now?
|
||||
42,
|
||||
NoWay,
|
||||
)
|
||||
simple(/* does this preserve comments now? */ 42, NoWay)
|
||||
}
|
||||
|
||||
fn generic<T>(arg: T) -> &SomeType
|
||||
|
@ -6,15 +6,8 @@ fn main() {
|
||||
S(.., true) => (),
|
||||
S(..) => (),
|
||||
S(_) => (),
|
||||
S(
|
||||
// ..
|
||||
..
|
||||
) => (),
|
||||
S(
|
||||
// ..
|
||||
..,
|
||||
true,
|
||||
) => (),
|
||||
S(/* .. */ ..) => (),
|
||||
S(/* .. */ .., true) => (),
|
||||
}
|
||||
|
||||
match y {
|
||||
@ -23,14 +16,7 @@ fn main() {
|
||||
(.., true) => (),
|
||||
(..) => (),
|
||||
(_,) => (),
|
||||
(
|
||||
// ..
|
||||
..
|
||||
) => (),
|
||||
(
|
||||
// ..
|
||||
..,
|
||||
true,
|
||||
) => (),
|
||||
(/* .. */ ..) => (),
|
||||
(/* .. */ .., true) => (),
|
||||
}
|
||||
}
|
||||
|
@ -7,12 +7,6 @@ fn main() {
|
||||
Tup(_) => "nah",
|
||||
Quad(_, _, x, _) => " also no rewrite",
|
||||
Quad(x, ..) => "condense me pls",
|
||||
Weird(
|
||||
x,
|
||||
_,
|
||||
_,
|
||||
// dont condense before
|
||||
..
|
||||
) => "pls work",
|
||||
Weird(x, _, _, /* dont condense before */ ..) => "pls work",
|
||||
}
|
||||
}
|
||||
|
@ -2,22 +2,13 @@
|
||||
fn types() {
|
||||
let x: [Vec<_>] = [];
|
||||
let y: *mut [SomeType; konst_funk()] = expr();
|
||||
let z: (
|
||||
// #digits
|
||||
usize,
|
||||
// exp
|
||||
i16,
|
||||
) = funk();
|
||||
let z: (/* #digits */ usize, /* exp */ i16) = funk();
|
||||
let z: (usize /* #digits */, i16 /* exp */) = funk();
|
||||
}
|
||||
|
||||
struct F {
|
||||
f: extern "C" fn(x: u8, ... /* comment */),
|
||||
g: extern "C" fn(
|
||||
x: u8,
|
||||
// comment
|
||||
...
|
||||
),
|
||||
g: extern "C" fn(x: u8, /* comment */ ...),
|
||||
h: extern "C" fn(x: u8, ...),
|
||||
i: extern "C" fn(
|
||||
x: u8,
|
||||
|
Loading…
Reference in New Issue
Block a user