Rollup merge of #104667 - WaffleLapkin:unfmttest, r=Dylan-DPC

Revert formatting changes of a test

See https://github.com/rust-lang/rust/pull/99935/files#r1027259119
cc ``@CAD97``
This commit is contained in:
Matthias Krüger 2022-11-21 14:11:13 +01:00 committed by GitHub
commit 9326261279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,27 +21,27 @@ accept_pat!([p | q]);
#[cfg(FALSE)]
fn or_patterns() {
// Top level of `let`:
let (A | B);
let (| A | B);
let (A | B);
let (A | B): u8;
let (A | B) = 0;
let (A | B): u8 = 0;
// Top level of `for`:
for A | B in 0 {}
for | A | B in 0 {}
for A | B in 0 {}
// Top level of `while`:
while let A | B = 0 {}
while let | A | B = 0 {}
while let A | B = 0 {}
// Top level of `if`:
if let A | B = 0 {}
if let | A | B = 0 {}
if let A | B = 0 {}
// Top level of `match` arms:
match 0 {
A | B => {}
| A | B => {}
A | B => {}
}