mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +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 {
|
if true {
|
||||||
//~^ ERROR: this `if` has identical blocks
|
// FIXME: should emit "this `if` has identical blocks"
|
||||||
Ok("foo")?;
|
Ok("foo")?;
|
||||||
} else {
|
} else {
|
||||||
Ok("foo")?;
|
Ok("foo")?;
|
||||||
|
|
|
@ -82,25 +82,6 @@ LL | | f32::NAN
|
||||||
LL | | };
|
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
|
error: this `if` has identical blocks
|
||||||
--> $DIR/if_same_then_else2.rs:124:20
|
--> $DIR/if_same_then_else2.rs:124:20
|
||||||
|
|
|
|
||||||
|
@ -122,5 +103,5 @@ LL | | return Ok(&foo[0..]);
|
||||||
LL | | }
|
LL | | }
|
||||||
| |_____^
|
| |_____^
|
||||||
|
|
||||||
error: aborting due to 6 previous errors
|
error: aborting due to 5 previous errors
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue