From 25e030bc4252bd23e1bed60dfbaca8a0ce7206bb Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 27 Feb 2021 18:36:15 +0100 Subject: [PATCH] Add test for rustdoc new check pass --- src/test/rustdoc-ui/rustc-check-passes.rs | 4 ++++ src/test/rustdoc-ui/rustc-check-passes.stderr | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/test/rustdoc-ui/rustc-check-passes.rs create mode 100644 src/test/rustdoc-ui/rustc-check-passes.stderr diff --git a/src/test/rustdoc-ui/rustc-check-passes.rs b/src/test/rustdoc-ui/rustc-check-passes.rs new file mode 100644 index 00000000000..731cc8ba617 --- /dev/null +++ b/src/test/rustdoc-ui/rustc-check-passes.rs @@ -0,0 +1,4 @@ +#![feature(box_syntax)] +#![feature(box_syntax)] //~ ERROR + +pub fn foo() {} diff --git a/src/test/rustdoc-ui/rustc-check-passes.stderr b/src/test/rustdoc-ui/rustc-check-passes.stderr new file mode 100644 index 00000000000..9707895ff3d --- /dev/null +++ b/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`.