File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 11An non-ascii identifier was used in an invalid context.
22
3- Erroneous code example :
3+ Erroneous code examples :
44
55``` compile_fail,E0754
66# #![feature(non_ascii_idents)]
77
8- mod řųśť;
9- // ^ error!
10- fn main() {}
11- ```
12-
13- ``` compile_fail,E0754
14- # #![feature(non_ascii_idents)]
8+ mod řųśť; // error!
159
1610#[no_mangle]
17- fn řųśť() {}
18- // ^ error!
11+ fn řųśť() {} // error!
12+
1913fn main() {}
2014```
2115
22- Non-ascii can be used as module names if it is inline
23- or a # \[ path \] attribute is specified. For example:
16+ Non-ascii can be used as module names if it is inlined or if a ` #[path] `
17+ attribute is specified. For example:
2418
2519```
2620# #![feature(non_ascii_idents)]
2721
28- mod řųśť {
22+ mod řųśť { // ok!
2923 const IS_GREAT: bool = true;
3024}
3125
You can’t perform that action at this time.
0 commit comments