Skip to content

Commit 6d768dd

Browse files
committed
error code examples: replace some ignore with compile_fail
1 parent aa046da commit 6d768dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc_error_codes/error_codes/E0454.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
A 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
```

src/librustc_error_codes/error_codes/E0458.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
An 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
```

src/librustc_error_codes/error_codes/E0459.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
A 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
```

0 commit comments

Comments
 (0)