File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ fn overlapping() {
5757 _ => ( ) ,
5858 }
5959
60+ /*
61+ // FIXME(JohnTitor): uncomment this once rustfmt knows half-open patterns
6062 match 42 {
6163 0.. => println!("0 .. 42"),
6264 3.. => println!("3 .. 42"),
@@ -68,6 +70,7 @@ fn overlapping() {
6870 ..26 => println!("0 .. 26"),
6971 _ => (),
7072 }
73+ */
7174
7275 if let None = Some ( 42 ) {
7376 // nothing
Original file line number Diff line number Diff line change @@ -59,29 +59,5 @@ note: overlaps with this
5959LL | 0..=11 => println!("0 ... 11"),
6060 | ^^^^^^
6161
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
8763
You can’t perform that action at this time.
0 commit comments