Add test for merged features

This commit is contained in:
Guillaume Gomez 2021-11-17 21:09:45 +01:00
parent 3c77b56d94
commit 9447d1f903
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#![feature(doc_keyword)] //~ ERROR
#![feature(doc_primitive)] //~ ERROR
#![crate_type = "lib"]
pub fn foo() {}

View file

@ -0,0 +1,19 @@
error[E0557]: feature has been removed
--> $DIR/renamed-features-rustdoc_internals.rs:1:12
|
LL | #![feature(doc_keyword)]
| ^^^^^^^^^^^ feature has been removed
|
= note: merged into `#![feature(rustdoc_internals)]`
error[E0557]: feature has been removed
--> $DIR/renamed-features-rustdoc_internals.rs:2:12
|
LL | #![feature(doc_primitive)]
| ^^^^^^^^^^^^^ feature has been removed
|
= note: merged into `#![feature(rustdoc_internals)]`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0557`.