Skip to content

Commit

Permalink
Add compile_fail to doctest for bindings_with_variant_name
Browse files Browse the repository at this point in the history
  • Loading branch information
timrobertsdev authored and Tim Roberts committed Jan 20, 2023
1 parent 734f375 commit 1cbce72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ declare_lint! {
///
/// ### Example
///
/// ```rust
/// ```rust,compile_fail
/// pub enum Enum {
/// Foo,
/// Bar,
Expand Down

0 comments on commit 1cbce72

Please sign in to comment.