diff options
| author | varkor <github@varkor.com> | 2018-05-25 17:31:45 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-05-25 17:31:45 +0100 |
| commit | d5bf4de0e4c86d5cacd5ca738e1ba65afc5586ca (patch) | |
| tree | 970ba5ec5af7785344e1bf3154532cbbaa8fcacc | |
| parent | 03d816fd934a19d3fdb27080add61b1dddbaad86 (diff) | |
| download | rust-d5bf4de0e4c86d5cacd5ca738e1ba65afc5586ca.tar.gz rust-d5bf4de0e4c86d5cacd5ca738e1ba65afc5586ca.zip | |
--bless the tests
| -rw-r--r-- | src/test/ui/break-while-condition.rs | 8 | ||||
| -rw-r--r-- | src/test/ui/break-while-condition.stderr | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/break-while-condition.rs b/src/test/ui/break-while-condition.rs index 5949b299893..050b479d485 100644 --- a/src/test/ui/break-while-condition.rs +++ b/src/test/ui/break-while-condition.rs @@ -22,16 +22,16 @@ fn main() { } if false { - let _: ! = { //~ ERROR mismatched types - while false { + let _: ! = { + while false { //~ ERROR mismatched types break } }; } if false { - let _: ! = { //~ ERROR mismatched types - while false { + let _: ! = { + while false { //~ ERROR mismatched types return } }; diff --git a/src/test/ui/break-while-condition.stderr b/src/test/ui/break-while-condition.stderr index e3564297bf2..c8f06db9603 100644 --- a/src/test/ui/break-while-condition.stderr +++ b/src/test/ui/break-while-condition.stderr @@ -16,7 +16,7 @@ error[E0308]: mismatched types LL | fn main() { | - expected `()` because of default return type ... -LL | / while false { +LL | / while false { //~ ERROR mismatched types LL | | break LL | | } | |_____________^ expected !, found () @@ -30,7 +30,7 @@ error[E0308]: mismatched types LL | fn main() { | - expected `()` because of default return type ... -LL | / while false { +LL | / while false { //~ ERROR mismatched types LL | | return LL | | } | |_____________^ expected !, found () |
