bless clippy test

This commit is contained in:
Esteban Küber 2023-08-14 22:00:46 +00:00
parent 89fdc3e383
commit d0a26f1c9c
2 changed files with 2 additions and 21 deletions

View file

@ -98,7 +98,7 @@ fn if_same_then_else2() -> Result<&'static str, ()> {
};
if true {
//~^ ERROR: this `if` has identical blocks
// FIXME: should emit "this `if` has identical blocks"
Ok("foo")?;
} else {
Ok("foo")?;

View file

@ -82,25 +82,6 @@ LL | | f32::NAN
LL | | };
| |_____^
error: this `if` has identical blocks
--> $DIR/if_same_then_else2.rs:100:13
|
LL | if true {
| _____________^
LL | |
LL | | Ok("foo")?;
LL | | } else {
| |_____^
|
note: same as this
--> $DIR/if_same_then_else2.rs:103:12
|
LL | } else {
| ____________^
LL | | Ok("foo")?;
LL | | }
| |_____^
error: this `if` has identical blocks
--> $DIR/if_same_then_else2.rs:124:20
|
@ -122,5 +103,5 @@ LL | | return Ok(&foo[0..]);
LL | | }
| |_____^
error: aborting due to 6 previous errors
error: aborting due to 5 previous errors