We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccac43b commit dc230c0Copy full SHA for dc230c0
src/librustc_error_codes/error_codes/E0648.md
@@ -1,6 +1,15 @@
1
-`export_name` attributes may not contain null characters (`\0`).
+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
0 commit comments