Add compile_fail to let_underscore_drop example

This commit is contained in:
Kagami Sascha Rosylight 2022-10-24 17:25:30 +02:00 committed by GitHub
parent 1481fd964b
commit 2484a18239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ declare_lint! {
/// scope.
///
/// ### Example
/// ```
/// ```compile_fail
/// struct SomeStruct;
/// impl Drop for SomeStruct {
/// fn drop(&mut self) {