Add test for rustdoc new check pass

This commit is contained in:
Guillaume Gomez 2021-02-27 18:36:15 +01:00
parent 9f1abe89b8
commit 25e030bc42
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#![feature(box_syntax)]
#![feature(box_syntax)] //~ ERROR
pub fn foo() {}

View File

@ -0,0 +1,9 @@
error[E0636]: the feature `box_syntax` has already been declared
--> $DIR/rustc-check-passes.rs:2:12
|
LL | #![feature(box_syntax)]
| ^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0636`.