Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pitaj committed May 2, 2024
1 parent 8f57684 commit 029bc5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
4 changes: 1 addition & 3 deletions tests/ui/rust-2024/reserved-guarded-strings-lexing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
19 changes: 2 additions & 17 deletions tests/ui/rust-2024/reserved-guarded-strings-lexing.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 029bc5a

Please sign in to comment.