Rustfmt tests

This commit is contained in:
Zaki Manian 2017-09-03 13:46:49 -07:00
parent 8b53f2238b
commit 44f694d0a1

View file

@ -4,7 +4,6 @@
#[allow(unused_variables)]
fn main() {
// lint should note removing the semicolon from "baz"
let x = {
"foo";
@ -32,14 +31,18 @@ fn main() {
// lint should ignore false positive
let a2 = match a1 {
Some(x) => x,
_ => {return;},
_ => {
return;
},
};
// lint should note removing the semicolon after `x;`
let a3 = match a1 {
Some(x) => {x;},
_ => {0;},
Some(x) => {
x;
},
_ => {
0;
},
};
}