File tree Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,5 @@ fn main() {
1616 // Non-ascii identifiers
1717 demo2 ! ( Ñ"foo" ) ; //~ ERROR prefix `Ñ` is unknown
1818 demo4 ! ( Ñ#"" #) ; //~ ERROR prefix `Ñ` is unknown
19- demo3 ! ( 🙃#"" ) ;
20- //~^ ERROR prefix `🙃` is unknown
21- //~| WARNING identifier contains an uncommon character
19+ demo3 ! ( 🙃#"" ) ; //~ ERROR identifiers cannot contain emoji
2220}
Original file line number Diff line number Diff line change @@ -22,26 +22,11 @@ help: consider inserting whitespace here
2222LL | demo4!(Ñ #""#);
2323 | +
2424
25- error: prefix `🙃` is unknown
26- --> $DIR/reserved-guarded-strings-lexing.rs:19:12
27- |
28- LL | demo3!(🙃#"");
29- | ^^ unknown prefix
30- |
31- = note: prefixed identifiers and literals are reserved since Rust 2021
32- help: consider inserting whitespace here
33- |
34- LL | demo3!(🙃 #"");
35- | +
36-
37- warning: identifier contains an uncommon character: '🙃'
25+ error: identifiers cannot contain emoji: `🙃`
3826 --> $DIR/reserved-guarded-strings-lexing.rs:19:12
3927 |
4028LL | demo3!(🙃#"");
4129 | ^^
42- |
43- = note: this character is included in the Unicode general security profile
44- = note: `#[warn(uncommon_codepoints)]` on by default
4530
46- error: aborting due to 3 previous errors; 1 warning emitted
31+ error: aborting due to 3 previous errors
4732
You can’t perform that action at this time.
0 commit comments