mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Regression test for improper spans in inclusive-range suggestions
This commit is contained in:
@@ -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 <https://github.com/rust-lang/rust/issues/155799>.
|
||||
|
||||
// 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() { ··· }
|
||||
Reference in New Issue
Block a user