mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
error code examples: replace some ignore with compile_fail
This commit is contained in:
parent
aa046da61f
commit
6d768ddecc
@ -1,6 +1,6 @@
|
||||
A link name was given with an empty name. Erroneous code example:
|
||||
|
||||
```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
|
||||
```compile_fail,E0454
|
||||
#[link(name = "")] extern {}
|
||||
// error: `#[link(name = "")]` given with empty name
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
An unknown "kind" was specified for a link attribute. Erroneous code example:
|
||||
|
||||
```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
|
||||
```compile_fail,E0458
|
||||
#[link(kind = "wonderful_unicorn")] extern {}
|
||||
// error: unknown kind: `wonderful_unicorn`
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
A link was used without a name parameter. Erroneous code example:
|
||||
|
||||
```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-codegen)
|
||||
```compile_fail,E0459
|
||||
#[link(kind = "dylib")] extern {}
|
||||
// error: `#[link(...)]` specified without `name = "foo"`
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user