From caf06bf5f5f3470f79362210a58c927711effd4d Mon Sep 17 00:00:00 2001 From: Aman Arora Date: Sat, 2 Jan 2021 21:28:28 -0500 Subject: [PATCH] Mark the lint doc as compile_fail --- compiler/rustc_lint_defs/src/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);