fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.8 KiB91 linesraw
1error: unknown start of token: \u{2796}
2  --> $DIR/emoji-identifiers.rs:13:33
3   |
4LL |     let _ = i_like_to_๐Ÿ˜„_a_lot() โž– 4;
5   |                                  ^^
6   |
7help: Unicode character 'โž–' (Heavy Minus Sign) looks like '-' (Minus/Hyphen), but it is not
8   |
9LL |     let _ = i_like_to_๐Ÿ˜„_a_lot() - 4;
10   |                                  ~
11
12error: Ferris cannot be used as an identifier
13  --> $DIR/emoji-identifiers.rs:17:9
14   |
15LL |     let ๐Ÿฆ€ = 1;
16   |         ^^ help: try using their name instead: `ferris`
17LL |     dbg!(๐Ÿฆ€);
18   |          ^^
19
20error: identifiers cannot contain emoji: `ABig๐Ÿ‘ฉ๐Ÿ‘ฉ๐Ÿ‘ง๐Ÿ‘งFamily`
21  --> $DIR/emoji-identifiers.rs:1:8
22   |
23LL | struct ABig๐Ÿ‘ฉ๐Ÿ‘ฉ๐Ÿ‘ง๐Ÿ‘งFamily;
24   |        ^^^^^^^^^^^^^^^^^^
25
26error: identifiers cannot contain emoji: `๐Ÿ‘€`
27  --> $DIR/emoji-identifiers.rs:2:8
28   |
29LL | struct ๐Ÿ‘€;
30   |        ^^
31LL | impl ๐Ÿ‘€ {
32   |      ^^
33LL |     fn full_of_โœจ() -> ๐Ÿ‘€ {
34   |                        ^^
35LL |         ๐Ÿ‘€
36   |         ^^
37...
38LL | fn i_like_to_๐Ÿ˜…_a_lot() -> ๐Ÿ‘€ {
39   |                            ^^
40LL |     ๐Ÿ‘€::full_ofโœจ()
41   |     ^^
42
43error: identifiers cannot contain emoji: `full_of_โœจ`
44  --> $DIR/emoji-identifiers.rs:4:8
45   |
46LL |     fn full_of_โœจ() -> ๐Ÿ‘€ {
47   |        ^^^^^^^^^^
48
49error: identifiers cannot contain emoji: `i_like_to_๐Ÿ˜…_a_lot`
50  --> $DIR/emoji-identifiers.rs:8:4
51   |
52LL | fn i_like_to_๐Ÿ˜…_a_lot() -> ๐Ÿ‘€ {
53   |    ^^^^^^^^^^^^^^^^^^
54
55error: identifiers cannot contain emoji: `full_ofโœจ`
56  --> $DIR/emoji-identifiers.rs:9:8
57   |
58LL |     ๐Ÿ‘€::full_ofโœจ()
59   |         ^^^^^^^^^
60
61error: identifiers cannot contain emoji: `i_like_to_๐Ÿ˜„_a_lot`
62  --> $DIR/emoji-identifiers.rs:13:13
63   |
64LL |     let _ = i_like_to_๐Ÿ˜„_a_lot() โž– 4;
65   |             ^^^^^^^^^^^^^^^^^^
66
67error[E0599]: no function or associated item named `full_ofโœจ` found for struct `๐Ÿ‘€` in the current scope
68  --> $DIR/emoji-identifiers.rs:9:8
69   |
70LL | struct ๐Ÿ‘€;
71   | --------- function or associated item `full_ofโœจ` not found for this struct
72...
73LL |     ๐Ÿ‘€::full_ofโœจ()
74   |         ^^^^^^^^^
75   |         |
76   |         function or associated item not found in `๐Ÿ‘€`
77   |         help: there is an associated function with a similar name: `full_of_โœจ`
78
79error[E0425]: cannot find function `i_like_to_๐Ÿ˜„_a_lot` in this scope
80  --> $DIR/emoji-identifiers.rs:13:13
81   |
82LL | fn i_like_to_๐Ÿ˜…_a_lot() -> ๐Ÿ‘€ {
83   | ----------------------------- similarly named function `i_like_to_๐Ÿ˜…_a_lot` defined here
84...
85LL |     let _ = i_like_to_๐Ÿ˜„_a_lot() โž– 4;
86   |             ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `i_like_to_๐Ÿ˜…_a_lot`
87
88error: aborting due to 10 previous errors
89
90Some errors have detailed explanations: E0425, E0599.
91For more information about an error, try `rustc --explain E0425`.