Skip to content

Commit 4a9aaa0

Browse files
committed
Mark failing lint example as compile_fail
1 parent 5d59e7a commit 4a9aaa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ declare_lint! {
13671367
///
13681368
/// ### Example
13691369
///
1370-
/// ```rust
1370+
/// ```rust,compile_fail
13711371
/// # use core::sync::atomic::{AtomicU8, Ordering};
13721372
/// let atom = AtomicU8::new(0);
13731373
/// let value = atom.load(Ordering::Release);

0 commit comments

Comments
 (0)