Skip to content

Commit 9447d1f

Browse files
Add test for merged features
1 parent 3c77b56 commit 9447d1f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![feature(doc_keyword)] //~ ERROR
2+
#![feature(doc_primitive)] //~ ERROR
3+
#![crate_type = "lib"]
4+
5+
pub fn foo() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error[E0557]: feature has been removed
2+
--> $DIR/renamed-features-rustdoc_internals.rs:1:12
3+
|
4+
LL | #![feature(doc_keyword)]
5+
| ^^^^^^^^^^^ feature has been removed
6+
|
7+
= note: merged into `#![feature(rustdoc_internals)]`
8+
9+
error[E0557]: feature has been removed
10+
--> $DIR/renamed-features-rustdoc_internals.rs:2:12
11+
|
12+
LL | #![feature(doc_primitive)]
13+
| ^^^^^^^^^^^^^ feature has been removed
14+
|
15+
= note: merged into `#![feature(rustdoc_internals)]`
16+
17+
error: aborting due to 2 previous errors
18+
19+
For more information about this error, try `rustc --explain E0557`.

0 commit comments

Comments
 (0)