We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782d228 commit ad92dc0Copy full SHA for ad92dc0
tests/rustdoc-ui/doctest/rustflags.rs
@@ -0,0 +1,12 @@
1
+//@ check-pass
2
+//@ compile-flags: --test
3
+//@ rustc-env:RUSTFLAGS=--cap-lints=warn
4
+//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
5
+
6
+/// ```
7
+/// #![deny(warnings)]
8
+/// #![feature(async_await)]
9
+///
10
+/// let x = 12;
11
12
+pub struct Bar;
tests/rustdoc-ui/doctest/rustflags.stdout
@@ -0,0 +1,6 @@
+running 1 test
+test $DIR/rustflags.rs - Bar (line 6) ... ok
+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s
0 commit comments