diff --git a/tests/ui/rust-2024/reserved-guarded-strings-lexing.rs b/tests/ui/rust-2024/reserved-guarded-strings-lexing.rs index 1784a2946a2bc..0e206037c1819 100644 --- a/tests/ui/rust-2024/reserved-guarded-strings-lexing.rs +++ b/tests/ui/rust-2024/reserved-guarded-strings-lexing.rs @@ -16,7 +16,5 @@ fn main() { // Non-ascii identifiers demo2!(Ñ"foo"); //~ ERROR prefix `Ñ` is unknown demo4!(Ñ#""#); //~ ERROR prefix `Ñ` is unknown - demo3!(🙃#""); - //~^ ERROR prefix `🙃` is unknown - //~| WARNING identifier contains an uncommon character + demo3!(🙃#""); //~ ERROR identifiers cannot contain emoji } diff --git a/tests/ui/rust-2024/reserved-guarded-strings-lexing.stderr b/tests/ui/rust-2024/reserved-guarded-strings-lexing.stderr index 53fa80aec0b4c..3937002723009 100644 --- a/tests/ui/rust-2024/reserved-guarded-strings-lexing.stderr +++ b/tests/ui/rust-2024/reserved-guarded-strings-lexing.stderr @@ -22,26 +22,11 @@ help: consider inserting whitespace here LL | demo4!(Ñ #""#); | + -error: prefix `🙃` is unknown - --> $DIR/reserved-guarded-strings-lexing.rs:19:12 - | -LL | demo3!(🙃#""); - | ^^ unknown prefix - | - = note: prefixed identifiers and literals are reserved since Rust 2021 -help: consider inserting whitespace here - | -LL | demo3!(🙃 #""); - | + - -warning: identifier contains an uncommon character: '🙃' +error: identifiers cannot contain emoji: `🙃` --> $DIR/reserved-guarded-strings-lexing.rs:19:12 | LL | demo3!(🙃#""); | ^^ - | - = note: this character is included in the Unicode general security profile - = note: `#[warn(uncommon_codepoints)]` on by default -error: aborting due to 3 previous errors; 1 warning emitted +error: aborting due to 3 previous errors