We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab8054 commit 028c796Copy full SHA for 028c796
src/libsyntax/diagnostic_list.rs
@@ -1,4 +1,4 @@
1
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2
// file at the top-level directory of this distribution and at
3
// http://rust-lang.org/COPYRIGHT.
4
//
@@ -16,8 +16,22 @@
16
register_long_diagnostics! {
17
18
E0533: r##"
19
+The export_name attribute was badly formatted.
20
+
21
+Erroneous code example:
22
23
```compile_fail,E0533
-#[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!
35
pub fn something() {}
36
37
fn main() {}
0 commit comments