File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 1 file changed +5
-9
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
8
mod řųśť;
9
9
// ^ error!
10
- fn main() {}
11
- ```
12
-
13
- ``` compile_fail,E0754
14
- # #![feature(non_ascii_idents)]
15
10
16
11
#[no_mangle]
17
12
fn řųśť() {}
18
13
// ^ error!
14
+
19
15
fn main() {}
20
16
```
21
17
22
- Non-ascii can be used as module names if it is inline
23
- or a # \[ path \] attribute is specified. For example:
18
+ Non-ascii can be used as module names if it is inline or a ` #[path] ` attribute
19
+ is specified. For example:
24
20
25
21
```
26
22
# #![feature(non_ascii_idents)]
27
23
28
- mod řųśť {
24
+ mod řųśť { // ok!
29
25
const IS_GREAT: bool = true;
30
26
}
31
27
You can’t perform that action at this time.
0 commit comments