blob: 0db10726c5dc48e17ef4118218be99ed0f820d5d [file] [edit]
// Suggestions for `...` in patterns should not perform span manipulations that
// assume the token is ASCII, because it could have been recovered from
// similar-looking Unicode characters.
//
// Regression test for https://github.com/rust-lang/rust/issues/156316.
// These dots are U+00B7 MIDDLE DOT, not ASCII periods.
impl S { fn f(ยทยทยท>) }
//~^ ERROR unknown start of token
//~| ERROR unknown start of token
//~| ERROR unknown start of token
//~| ERROR unexpected `...`
//~| ERROR expected `:`, found `>`
//~| ERROR expected one of
//~| ERROR associated function in `impl` without body
//~| ERROR cannot find type `S` in this scope
//~| ERROR missing pattern for `...` argument
//~| WARN this was previously accepted by the compiler
fn main() {}