about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAman Arora <me@aman-arora.com>2021-01-02 21:28:28 -0500
committerAman Arora <me@aman-arora.com>2021-02-01 22:13:42 -0500
commitcaf06bf5f5f3470f79362210a58c927711effd4d (patch)
treec26af6a62bede79311406793521bee43cf4c00cf
parent3c71a7b60f8c661899a4e0cbe498ac67f3f02632 (diff)
downloadrust-caf06bf5f5f3470f79362210a58c927711effd4d.tar.gz
rust-caf06bf5f5f3470f79362210a58c927711effd4d.zip
Mark the lint doc as compile_fail
-rw-r--r--compiler/rustc_lint_defs/src/builtin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs
index f1e5a4d47c7..199be009907 100644
--- a/compiler/rustc_lint_defs/src/builtin.rs
+++ b/compiler/rustc_lint_defs/src/builtin.rs
@@ -3002,7 +3002,7 @@ declare_lint! {
     ///
     /// ### Example
     ///
-    /// ```rust
+    /// ```rust,compile_fail
     /// # #![deny(disjoint_capture_drop_reorder)]
     /// # #![allow(unused)]
     /// struct FancyInteger(i32);