mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
Add test for rustdoc new check pass
This commit is contained in:
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`.
|
||||
Reference in New Issue
Block a user