Skip to content

Commit 1cbce72

Browse files
timrobertsdevTim Roberts
authored and
Tim Roberts
committed
Add compile_fail to doctest for bindings_with_variant_name
1 parent 734f375 commit 1cbce72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ declare_lint! {
708708
///
709709
/// ### Example
710710
///
711-
/// ```rust
711+
/// ```rust,compile_fail
712712
/// pub enum Enum {
713713
/// Foo,
714714
/// Bar,

0 commit comments

Comments
 (0)