diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-09-10 07:30:58 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-23 20:36:19 +0000 |
| commit | d68add9eccf2561380177d07d4e7b31433562a2b (patch) | |
| tree | f678fe56e0858a55e25f6a725a684c49d45fbc04 /src/test/ui/parser | |
| parent | 21224e6ee07b917f7996b27f05c57327f806a026 (diff) | |
| download | rust-d68add9eccf2561380177d07d4e7b31433562a2b.tar.gz rust-d68add9eccf2561380177d07d4e7b31433562a2b.zip | |
review comment: plural of emoji is emoji
Diffstat (limited to 'src/test/ui/parser')
| -rw-r--r-- | src/test/ui/parser/emoji-identifiers.rs | 12 | ||||
| -rw-r--r-- | src/test/ui/parser/emoji-identifiers.stderr | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/test/ui/parser/emoji-identifiers.rs b/src/test/ui/parser/emoji-identifiers.rs index e07e0573e75..ef18939bbb8 100644 --- a/src/test/ui/parser/emoji-identifiers.rs +++ b/src/test/ui/parser/emoji-identifiers.rs @@ -1,16 +1,16 @@ -struct ABig๐ฉโ๐ฉโ๐งโ๐งFamily; //~ ERROR identifiers cannot contain emojis -struct ๐; //~ ERROR identifiers cannot contain emojis +struct ABig๐ฉโ๐ฉโ๐งโ๐งFamily; //~ ERROR identifiers cannot contain emoji +struct ๐; //~ ERROR identifiers cannot contain emoji impl ๐ { - fn full_of_โจ() -> ๐ { //~ ERROR identifiers cannot contain emojis + fn full_of_โจ() -> ๐ { //~ ERROR identifiers cannot contain emoji ๐ } } -fn i_like_to_๐ _a_lot() -> ๐ { //~ ERROR identifiers cannot contain emojis +fn i_like_to_๐ _a_lot() -> ๐ { //~ ERROR identifiers cannot contain emoji ๐::full_ofโจ() //~ ERROR no function or associated item named `full_ofโจ` found for struct `๐` - //~^ ERROR identifiers cannot contain emojis + //~^ ERROR identifiers cannot contain emoji } fn main() { let _ = i_like_to_๐_a_lot() โ 4; //~ ERROR cannot find function `i_like_to_๐_a_lot` in this scope - //~^ ERROR identifiers cannot contain emojis + //~^ ERROR identifiers cannot contain emoji //~| ERROR unknown start of token: \u{2796} } diff --git a/src/test/ui/parser/emoji-identifiers.stderr b/src/test/ui/parser/emoji-identifiers.stderr index a73681d9196..a69a9c542d6 100644 --- a/src/test/ui/parser/emoji-identifiers.stderr +++ b/src/test/ui/parser/emoji-identifiers.stderr @@ -18,25 +18,25 @@ LL | fn i_like_to_๐ _a_lot() -> ๐ { LL | let _ = i_like_to_๐_a_lot() โ 4; | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `i_like_to_๐ _a_lot` -error: identifiers cannot contain emojis: `i_like_to_๐_a_lot` +error: identifiers cannot contain emoji: `i_like_to_๐_a_lot` --> $DIR/emoji-identifiers.rs:13:13 | LL | let _ = i_like_to_๐_a_lot() โ 4; | ^^^^^^^^^^^^^^^^^^ -error: identifiers cannot contain emojis: `full_of_โจ` +error: identifiers cannot contain emoji: `full_of_โจ` --> $DIR/emoji-identifiers.rs:4:8 | LL | fn full_of_โจ() -> ๐ { | ^^^^^^^^^^ -error: identifiers cannot contain emojis: `full_ofโจ` +error: identifiers cannot contain emoji: `full_ofโจ` --> $DIR/emoji-identifiers.rs:9:8 | LL | ๐::full_ofโจ() | ^^^^^^^^^ -error: identifiers cannot contain emojis: `๐` +error: identifiers cannot contain emoji: `๐` --> $DIR/emoji-identifiers.rs:2:8 | LL | struct ๐; @@ -53,13 +53,13 @@ LL | fn i_like_to_๐ _a_lot() -> ๐ { LL | ๐::full_ofโจ() | ^^ -error: identifiers cannot contain emojis: `i_like_to_๐ _a_lot` +error: identifiers cannot contain emoji: `i_like_to_๐ _a_lot` --> $DIR/emoji-identifiers.rs:8:4 | LL | fn i_like_to_๐ _a_lot() -> ๐ { | ^^^^^^^^^^^^^^^^^^ -error: identifiers cannot contain emojis: `ABig๐ฉ๐ฉ๐ง๐งFamily` +error: identifiers cannot contain emoji: `ABig๐ฉ๐ฉ๐ง๐งFamily` --> $DIR/emoji-identifiers.rs:1:8 | LL | struct ABig๐ฉ๐ฉ๐ง๐งFamily; |
