File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11A link name was given with an empty name. Erroneous code example:
22
3- ``` ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
3+ ``` compile_fail,E0454
44#[link(name = "")] extern {}
55// error: `#[link(name = "")]` given with empty name
66```
Original file line number Diff line number Diff line change 11An unknown "kind" was specified for a link attribute. Erroneous code example:
22
3- ``` ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
3+ ``` compile_fail,E0458
44#[link(kind = "wonderful_unicorn")] extern {}
55// error: unknown kind: `wonderful_unicorn`
66```
Original file line number Diff line number Diff line change 11A link was used without a name parameter. Erroneous code example:
22
3- ``` ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
3+ ``` compile_fail,E0459
44#[link(kind = "dylib")] extern {}
55// error: `#[link(...)]` specified without `name = "foo"`
66```
You can’t perform that action at this time.
0 commit comments