]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/emoji-identifiers.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / parser / emoji-identifiers.rs
1 struct ABig๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘งFamily; //~ ERROR identifiers cannot contain emoji
2 struct ๐Ÿ‘€; //~ ERROR identifiers cannot contain emoji
3 impl ๐Ÿ‘€ {
4     fn full_of_โœจ() -> ๐Ÿ‘€ { //~ ERROR identifiers cannot contain emoji
5         ๐Ÿ‘€
6     }
7 }
8 fn i_like_to_๐Ÿ˜…_a_lot() -> ๐Ÿ‘€ { //~ ERROR identifiers cannot contain emoji
9     ๐Ÿ‘€::full_ofโœจ() //~ ERROR no function or associated item named `full_ofโœจ` found for struct `๐Ÿ‘€`
10     //~^ ERROR identifiers cannot contain emoji
11 }
12 fn main() {
13     let _ = i_like_to_๐Ÿ˜„_a_lot() โž– 4; //~ ERROR cannot find function `i_like_to_๐Ÿ˜„_a_lot` in this scope
14     //~^ ERROR identifiers cannot contain emoji
15     //~| ERROR unknown start of token: \u{2796}
16
17     let ๐Ÿฆ€ = 1;//~ ERROR Ferris cannot be used as an identifier
18     dbg!(๐Ÿฆ€);
19 }