Skip to content

Commit

Permalink
Fix test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jan 18, 2019
1 parent fbb0728 commit 954769e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ fn baz() -> impl std::fmt::Display {

fn qux() -> impl std::fmt::Display {
if false {
//~^ ERROR if and else have incompatible types
0i32
} else {
1u32
//~^ ERROR if and else have incompatible types
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ LL | | }
found type `u32`

error[E0308]: if and else have incompatible types
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:28:5
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:31:9
|
LL | / if false {
LL | | //~^ ERROR if and else have incompatible types
LL | | 0i32
| | ---- expected because of this
LL | | } else {
LL | | 1u32
| | ^^^^ expected i32, found u32
LL | | //~^ ERROR if and else have incompatible types
LL | | }
| |_____^ expected i32, found u32
| |_____- if and else have incompatible types
|
= note: expected type `i32`
found type `u32`
Expand Down

0 comments on commit 954769e

Please sign in to comment.