Skip to content

Commit 2484a18

Browse files
authored
Add compile_fail to let_underscore_drop example
1 parent 1481fd9 commit 2484a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/let_underscore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare_lint! {
1111
/// scope.
1212
///
1313
/// ### Example
14-
/// ```
14+
/// ```compile_fail
1515
/// struct SomeStruct;
1616
/// impl Drop for SomeStruct {
1717
/// fn drop(&mut self) {

0 commit comments

Comments
 (0)