From 1cbce729c74c3c3b50dabdb776e41cc5c23f5601 Mon Sep 17 00:00:00 2001 From: --global <39689890+timrobertsdev@users.noreply.github.com> Date: Tue, 8 Nov 2022 11:01:03 -0500 Subject: [PATCH] Add `compile_fail` to doctest for `bindings_with_variant_name` --- 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 0748dd94c457c..1ac97849ec611 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -708,7 +708,7 @@ declare_lint! { /// /// ### Example /// - /// ```rust + /// ```rust,compile_fail /// pub enum Enum { /// Foo, /// Bar,