]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0754.md
Auto merge of #82747 - JohnTitor:pin-es-check-version, r=Mark-Simulacrum
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0754.md
1 A non-ASCII identifier was used in an invalid context.
2
3 Erroneous code examples:
4
5 ```compile_fail,E0754
6 # #![feature(non_ascii_idents)]
7
8 mod řųśť; // error!
9
10 #[no_mangle]
11 fn řųśť() {} // error!
12
13 fn main() {}
14 ```
15
16 Non-ASCII can be used as module names if it is inlined or if a `#[path]`
17 attribute is specified. For example:
18
19 ```
20 # #![feature(non_ascii_idents)]
21
22 mod řųśť { // ok!
23     const IS_GREAT: bool = true;
24 }
25
26 fn main() {}
27 ```