]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0754.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[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
7 mod řųśť; // error!
8
9 #[no_mangle]
10 fn řųśť() {} // error!
11
12 fn main() {}
13 ```
14
15 Non-ASCII can be used as module names if it is inlined or if a `#[path]`
16 attribute is specified. For example:
17
18 ```
19 mod řųśť { // ok!
20     const IS_GREAT: bool = true;
21 }
22
23 fn main() {}
24 ```