summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0648.md
blob: d99dc19503ddbe557dcca6287190758109b5d226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
An `export_name` attribute contains null characters (`\0`).

Erroneous code example:

```compile_fail,E0648
#[export_name="\0foo"] // error: `export_name` may not contain null characters
pub fn bar() {}
```

To fix this error, remove the null characters:

```
#[export_name="foo"] // ok!
pub fn bar() {}
```