rust/tests/target/configs/trailing_semicolon/false.rs
David Alber 6939e21f43 Moving config option tests to subdirectory
This was done by running the following.

```sh
for f in `find . -name "configs-*.rs"`; do
    topdir=`echo $f | cut -d/ -f2`;
    configname=`echo $f | cut -d/ -f3 | cut -d- -f2`;
    testname=`echo $f | cut -d/ -f3 | cut -d- -f3`;
    mkdir -p $topdir/configs/$configname;
    git mv $f $topdir/configs/$configname/$testname;
done
```
2017-12-28 10:29:48 -08:00

28 lines
346 B
Rust

// rustfmt-trailing_semicolon: false
#![feature(loop_break_value)]
fn main() {
'a: loop {
break 'a
}
let mut done = false;
'b: while !done {
done = true;
continue 'b
}
let x = loop {
break 5
};
let x = 'c: loop {
break 'c 5
};
}
fn foo() -> usize {
return 0
}