Update tests
This commit is contained in:
parent
b60750882a
commit
49409c0096
11
tests/source/closure-block-inside-macro.rs
Normal file
11
tests/source/closure-block-inside-macro.rs
Normal file
@ -0,0 +1,11 @@
|
||||
// rustfmt-fn_call_style: Block
|
||||
|
||||
// #1547
|
||||
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {
|
||||
let index = *first as usize;
|
||||
if index >= ENCODINGS.len() {
|
||||
return;
|
||||
}
|
||||
let encoding = ENCODINGS[index];
|
||||
dispatch_test(encoding, &data[1..]);
|
||||
});
|
@ -21,10 +21,12 @@ fn main() {
|
||||
false => (),
|
||||
});
|
||||
|
||||
loong_func().quux(move || if true {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
loong_func().quux(move || {
|
||||
if true {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
}
|
||||
});
|
||||
|
||||
some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {
|
||||
|
@ -23,10 +23,12 @@ fn main() {
|
||||
false => (),
|
||||
});
|
||||
|
||||
loong_func().quux(move || if true {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
loong_func().quux(move || {
|
||||
if true {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
}
|
||||
});
|
||||
|
||||
some_fuuuuuuuuunction().method_call_a(aaaaa, bbbbb, |c| {
|
||||
|
@ -74,10 +74,12 @@ fn main() {
|
||||
arg(a, b, c, d, e)
|
||||
}
|
||||
|
||||
loong_func().quux(move || if true {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
loong_func().quux(move || {
|
||||
if true {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
}
|
||||
});
|
||||
|
||||
fffffffffffffffffffffffffffffffffff(a, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user