File tree 1 file changed +7
-13
lines changed
src/librustc_error_codes/error_codes
1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
1
An non-ascii identifier was used in an invalid context.
2
2
3
- Erroneous code example :
3
+ Erroneous code examples :
4
4
5
5
``` compile_fail,E0754
6
6
# #![feature(non_ascii_idents)]
7
7
8
- mod řųśť;
9
- // ^ error!
10
- fn main() {}
11
- ```
12
-
13
- ``` compile_fail,E0754
14
- # #![feature(non_ascii_idents)]
8
+ mod řųśť; // error!
15
9
16
10
#[no_mangle]
17
- fn řųśť() {}
18
- // ^ error!
11
+ fn řųśť() {} // error!
12
+
19
13
fn main() {}
20
14
```
21
15
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:
24
18
25
19
```
26
20
# #![feature(non_ascii_idents)]
27
21
28
- mod řųśť {
22
+ mod řųśť { // ok!
29
23
const IS_GREAT: bool = true;
30
24
}
31
25
You can’t perform that action at this time.
0 commit comments