diff options
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/match/match-incompat-type-semi.stderr | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/src/test/ui/match/match-incompat-type-semi.stderr b/src/test/ui/match/match-incompat-type-semi.stderr index 1a2dbbcc29f..008b1c1e93d 100644 --- a/src/test/ui/match/match-incompat-type-semi.stderr +++ b/src/test/ui/match/match-incompat-type-semi.stderr @@ -56,36 +56,32 @@ LL | | }; error[E0308]: `match` arms have incompatible types --> $DIR/match-incompat-type-semi.rs:39:17 | -LL | let _ = match Some(42) { - | _____________- -LL | | Some(x) => { -LL | | x - | | - this is found to be of type `{integer}` -LL | | }, -LL | | None => { - | |_________________^ -LL | || }, - | ||_________^ expected integer, found `()` -LL | | }; - | |_____- `match` arms have incompatible types +LL | let _ = match Some(42) { + | -------------- `match` arms have incompatible types +LL | Some(x) => { +LL | x + | - this is found to be of type `{integer}` +LL | }, +LL | None => { + | _________________^ +LL | | }, + | |_________^ expected integer, found `()` error[E0308]: `match` arms have incompatible types --> $DIR/match-incompat-type-semi.rs:50:17 | -LL | let _ = match Some(42) { - | _____________- -LL | | Some(x) => "rust-lang.org" - | |____________________- -LL | || .chars() -LL | || .skip(1) -LL | || .chain(Some(x as u8 as char)) -LL | || .take(10) -LL | || .any(char::is_alphanumeric), - | ||_______________________________________- this is found to be of type `bool` -LL | | None => {} - | | ^^ expected `bool`, found `()` -LL | | }; - | |_____- `match` arms have incompatible types +LL | let _ = match Some(42) { + | -------------- `match` arms have incompatible types +LL | Some(x) => "rust-lang.org" + | ____________________- +LL | | .chars() +LL | | .skip(1) +LL | | .chain(Some(x as u8 as char)) +LL | | .take(10) +LL | | .any(char::is_alphanumeric), + | |_______________________________________- this is found to be of type `bool` +LL | None => {} + | ^^ expected `bool`, found `()` error: aborting due to 5 previous errors |
