diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index fb46f7a08b9..ecb34e43c59 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -971,7 +971,7 @@ impl<'a> StringReader<'a> { } else { err.span_help( span, - "format of unicode escape sequences is `\\u{…}`", + "format of unicode escape sequences is `\\u{...}`", ); } err.emit(); diff --git a/src/test/ui/parser/issue-23620-invalid-escapes.stderr b/src/test/ui/parser/issue-23620-invalid-escapes.stderr index 025b392627d..f6e476ab0cd 100644 --- a/src/test/ui/parser/issue-23620-invalid-escapes.stderr +++ b/src/test/ui/parser/issue-23620-invalid-escapes.stderr @@ -16,7 +16,7 @@ error: incorrect unicode escape sequence LL | let _ = b'/u'; | ^^ | -help: format of unicode escape sequences is `/u{…}` +help: format of unicode escape sequences is `/u{...}` --> $DIR/issue-23620-invalid-escapes.rs:10:15 | LL | let _ = b'/u'; @@ -82,7 +82,7 @@ error: incorrect unicode escape sequence LL | let _ = b"/u{a4a4} /xf /u"; | ^^ | -help: format of unicode escape sequences is `/u{…}` +help: format of unicode escape sequences is `/u{...}` --> $DIR/issue-23620-invalid-escapes.rs:28:28 | LL | let _ = b"/u{a4a4} /xf /u"; @@ -112,7 +112,7 @@ error: incorrect unicode escape sequence LL | let _ = "/xf /u"; | ^^ | -help: format of unicode escape sequences is `/u{…}` +help: format of unicode escape sequences is `/u{...}` --> $DIR/issue-23620-invalid-escapes.rs:34:18 | LL | let _ = "/xf /u";