diff --git a/tests/ui/parser/range-inclusive-suggestion-span.rs b/tests/ui/parser/range-inclusive-suggestion-span.rs new file mode 100644 index 000000000000..eed115d0ac89 --- /dev/null +++ b/tests/ui/parser/range-inclusive-suggestion-span.rs @@ -0,0 +1,14 @@ +#![crate_type = "rlib"] + +// Suggestions for range patterns should not perform span manipulations that +// assume the range token is ASCII, because it could have been recovered from +// similar-looking Unicode characters. +// +// Regression test for . + +// FIXME: The ICE is fixed in a subsequent commit. +//@ known-bug: #155799 +//@ failure-status: 101 + +// These dots are U+00B7 MIDDLE DOT, not an ASCII period. +fn dot_dot_dot() { ยทยทยท }