File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
- // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
16
16
register_long_diagnostics ! {
17
17
18
18
E0533 : r##"
19
+ The export_name attribute was badly formatted.
20
+
21
+ Erroneous code example:
22
+
19
23
```compile_fail,E0533
20
- #[export_name]
24
+ #[export_name] // error: export_name attribute has invalid format
25
+ pub fn something() {}
26
+
27
+ fn main() {}
28
+ ```
29
+
30
+ The export_name attribute expects a string in order to determine the name of
31
+ the exported symbol. Example:
32
+
33
+ ```
34
+ #[export_name = "some function"] // ok!
21
35
pub fn something() {}
22
36
23
37
fn main() {}
You can’t perform that action at this time.
0 commit comments