diff --git a/tests/ui/let_underscore_lock.rs b/tests/ui/let_underscore_lock.rs index ccac73be79e4..28d8dd498319 100644 --- a/tests/ui/let_underscore_lock.rs +++ b/tests/ui/let_underscore_lock.rs @@ -26,6 +26,7 @@ fn main() { let _ = p_rw; } +#[allow(let_underscore_lock)] fn uplifted() { // shouldn't lint std locks as they were uplifted as rustc's `let_underscore_lock`