File tree 2 files changed +4
-25
lines changed
2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ fn overlapping() {
57
57
_ => ( ) ,
58
58
}
59
59
60
+ /*
61
+ // FIXME(JohnTitor): uncomment this once rustfmt knows half-open patterns
60
62
match 42 {
61
63
0.. => println!("0 .. 42"),
62
64
3.. => println!("3 .. 42"),
@@ -68,6 +70,7 @@ fn overlapping() {
68
70
..26 => println!("0 .. 26"),
69
71
_ => (),
70
72
}
73
+ */
71
74
72
75
if let None = Some ( 42 ) {
73
76
// nothing
Original file line number Diff line number Diff line change @@ -59,29 +59,5 @@ note: overlaps with this
59
59
LL | 0..=11 => println!("0 ... 11"),
60
60
| ^^^^^^
61
61
62
- error: some ranges overlap
63
- --> $DIR/match_overlapping_arm.rs:61:9
64
- |
65
- LL | 0.. => println!("0 .. 42"),
66
- | ^^^
67
- |
68
- note: overlaps with this
69
- --> $DIR/match_overlapping_arm.rs:62:9
70
- |
71
- LL | 3.. => println!("3 .. 42"),
72
- | ^^^
73
-
74
- error: some ranges overlap
75
- --> $DIR/match_overlapping_arm.rs:67:9
76
- |
77
- LL | ..=23 => println!("0 ... 23"),
78
- | ^^^^^
79
- |
80
- note: overlaps with this
81
- --> $DIR/match_overlapping_arm.rs:68:9
82
- |
83
- LL | ..26 => println!("0 .. 26"),
84
- | ^^^^
85
-
86
- error: aborting due to 7 previous errors
62
+ error: aborting due to 5 previous errors
87
63
You can’t perform that action at this time.
0 commit comments