Skip to content

Commit f107bb8

Browse files
committed
Regression test for improper spans in inclusive-range suggestions
1 parent 68ffae4 commit f107bb8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![crate_type = "rlib"]
2+
3+
// Suggestions for range patterns should not perform span manipulations that
4+
// assume the range token is ASCII, because it could have been recovered from
5+
// similar-looking Unicode characters.
6+
//
7+
// Regression test for <https://github.com/rust-lang/rust/issues/155799>.
8+
9+
// FIXME: The ICE is fixed in a subsequent commit.
10+
//@ known-bug: #155799
11+
//@ failure-status: 101
12+
13+
// These dots are U+00B7 MIDDLE DOT, not an ASCII period.
14+
fn dot_dot_dot() { ··· }

0 commit comments

Comments
 (0)