Skip to content

Commit

Permalink
Add test for rustdoc new check pass
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 27, 2021
1 parent 9f1abe8 commit 25e030b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/rustdoc-ui/rustc-check-passes.rs
@@ -0,0 +1,4 @@
#![feature(box_syntax)]
#![feature(box_syntax)] //~ ERROR

pub fn foo() {}
9 changes: 9 additions & 0 deletions src/test/rustdoc-ui/rustc-check-passes.stderr
@@ -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`.

0 comments on commit 25e030b

Please sign in to comment.