Add test for rustdoc new check pass
This commit is contained in:
parent
9f1abe89b8
commit
25e030bc42
4
src/test/rustdoc-ui/rustc-check-passes.rs
Normal file
4
src/test/rustdoc-ui/rustc-check-passes.rs
Normal file
@ -0,0 +1,4 @@
|
||||
#![feature(box_syntax)]
|
||||
#![feature(box_syntax)] //~ ERROR
|
||||
|
||||
pub fn foo() {}
|
9
src/test/rustdoc-ui/rustc-check-passes.stderr
Normal file
9
src/test/rustdoc-ui/rustc-check-passes.stderr
Normal 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`.
|
Loading…
Reference in New Issue
Block a user