File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,7 @@ fn main() {
13
13
let _ = i_like_to_ π_a_lot( ) β 4 ; //~ ERROR cannot find function `i_like_to_π_a_lot` in this scope
14
14
//~^ ERROR identifiers cannot contain emoji
15
15
//~| ERROR unknown start of token: \u{2796}
16
+
17
+ let π¦ = 1 ; //~ ERROR Ferris cannot be used as an identifier
18
+ dbg ! ( π¦) ;
16
19
}
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ LL | fn i_like_to_π
_a_lot() -> π {
18
18
LL | let _ = i_like_to_π_a_lot() β 4;
19
19
| ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `i_like_to_π
_a_lot`
20
20
21
+ error: Ferris cannot be used as an identifier
22
+ --> $DIR/emoji-identifiers.rs:17:9
23
+ |
24
+ LL | let π¦ = 1;
25
+ | ^^ help: try using their name instead: `ferris`
26
+ LL | dbg!(π¦);
27
+ | ^^
28
+
21
29
error: identifiers cannot contain emoji: `ABigπ©π©π§π§Family`
22
30
--> $DIR/emoji-identifiers.rs:1:8
23
31
|
@@ -77,7 +85,7 @@ LL | π::full_ofβ¨()
77
85
| function or associated item not found in `π`
78
86
| help: there is an associated function with a similar name: `full_of_β¨`
79
87
80
- error: aborting due to 9 previous errors
88
+ error: aborting due to 10 previous errors
81
89
82
90
Some errors have detailed explanations: E0425, E0599.
83
91
For more information about an error, try `rustc --explain E0425`.
You canβt perform that action at this time.
0 commit comments