diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/parser/emoji-identifiers.stderr | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/parser/emoji-identifiers.stderr')
-rw-r--r-- | src/test/ui/parser/emoji-identifiers.stderr | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/src/test/ui/parser/emoji-identifiers.stderr b/src/test/ui/parser/emoji-identifiers.stderr new file mode 100644 index 000000000..2550dc3d3 --- /dev/null +++ b/src/test/ui/parser/emoji-identifiers.stderr @@ -0,0 +1,91 @@ +error: unknown start of token: \u{2796} + --> $DIR/emoji-identifiers.rs:13:33 + | +LL | let _ = i_like_to_๐_a_lot() โ 4; + | ^^ + | +help: Unicode character 'โ' (Heavy Minus Sign) looks like '-' (Minus/Hyphen), but it is not + | +LL | let _ = i_like_to_๐_a_lot() - 4; + | ~ + +error[E0425]: cannot find function `i_like_to_๐_a_lot` in this scope + --> $DIR/emoji-identifiers.rs:13:13 + | +LL | fn i_like_to_๐
_a_lot() -> ๐ { + | ----------------------------- similarly named function `i_like_to_๐
_a_lot` defined here +... +LL | let _ = i_like_to_๐_a_lot() โ 4; + | ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `i_like_to_๐
_a_lot` + +error: Ferris cannot be used as an identifier + --> $DIR/emoji-identifiers.rs:17:9 + | +LL | let ๐ฆ = 1; + | ^^ help: try using their name instead: `ferris` +LL | dbg!(๐ฆ); + | ^^ + +error: identifiers cannot contain emoji: `ABig๐ฉ๐ฉ๐ง๐งFamily` + --> $DIR/emoji-identifiers.rs:1:8 + | +LL | struct ABig๐ฉ๐ฉ๐ง๐งFamily; + | ^^^^^^^^^^^^^^^^^^ + +error: identifiers cannot contain emoji: `๐` + --> $DIR/emoji-identifiers.rs:2:8 + | +LL | struct ๐; + | ^^ +LL | impl ๐ { + | ^^ +LL | fn full_of_โจ() -> ๐ { + | ^^ +LL | ๐ + | ^^ +... +LL | fn i_like_to_๐
_a_lot() -> ๐ { + | ^^ +LL | ๐::full_ofโจ() + | ^^ + +error: identifiers cannot contain emoji: `full_of_โจ` + --> $DIR/emoji-identifiers.rs:4:8 + | +LL | fn full_of_โจ() -> ๐ { + | ^^^^^^^^^^ + +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 emoji: `full_ofโจ` + --> $DIR/emoji-identifiers.rs:9:8 + | +LL | ๐::full_ofโจ() + | ^^^^^^^^^ + +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[E0599]: no function or associated item named `full_ofโจ` found for struct `๐` in the current scope + --> $DIR/emoji-identifiers.rs:9:8 + | +LL | struct ๐; + | --------- function or associated item `full_ofโจ` not found for this struct +... +LL | ๐::full_ofโจ() + | ^^^^^^^^^ + | | + | function or associated item not found in `๐` + | help: there is an associated function with a similar name: `full_of_โจ` + +error: aborting due to 10 previous errors + +Some errors have detailed explanations: E0425, E0599. +For more information about an error, try `rustc --explain E0425`. |