]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0648.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0648.md
1 An `export_name` attribute contains null characters (`\0`).
2
3 Erroneous code example:
4
5 ```compile_fail,E0648
6 #[export_name="\0foo"] // error: `export_name` may not contain null characters
7 pub fn bar() {}
8 ```
9
10 To fix this error, remove the null characters:
11
12 ```
13 #[export_name="foo"] // ok!
14 pub fn bar() {}
15 ```