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