mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
bless clippy test
This commit is contained in:
parent
89fdc3e383
commit
d0a26f1c9c
2 changed files with 2 additions and 21 deletions
|
@ -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")?;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue