error code examples: replace some ignore with compile_fail

This commit is contained in:
Trevor Spiteri 2020-01-30 15:51:19 +01:00
parent aa046da61f
commit 6d768ddecc
3 changed files with 3 additions and 3 deletions

View File

@ -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
```

View File

@ -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`
```

View File

@ -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"`
```