Skip to content

Commit 25e030b

Browse files
Add test for rustdoc new check pass
1 parent 9f1abe8 commit 25e030b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![feature(box_syntax)]
2+
#![feature(box_syntax)] //~ ERROR
3+
4+
pub fn foo() {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0636]: the feature `box_syntax` has already been declared
2+
--> $DIR/rustc-check-passes.rs:2:12
3+
|
4+
LL | #![feature(box_syntax)]
5+
| ^^^^^^^^^^
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0636`.

0 commit comments

Comments
 (0)