File tree 2 files changed +3
-20
lines changed
2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,5 @@ fn main() {
16
16
// Non-ascii identifiers
17
17
demo2 ! ( Ñ"foo" ) ; //~ ERROR prefix `Ñ` is unknown
18
18
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
22
20
}
Original file line number Diff line number Diff line change @@ -22,26 +22,11 @@ help: consider inserting whitespace here
22
22
LL | demo4!(Ñ #""#);
23
23
| +
24
24
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: `🙃`
38
26
--> $DIR/reserved-guarded-strings-lexing.rs:19:12
39
27
|
40
28
LL | demo3!(🙃#"");
41
29
| ^^
42
- |
43
- = note: this character is included in the Unicode general security profile
44
- = note: `#[warn(uncommon_codepoints)]` on by default
45
30
46
- error: aborting due to 3 previous errors; 1 warning emitted
31
+ error: aborting due to 3 previous errors
47
32
You can’t perform that action at this time.
0 commit comments