Skip to content

Commit

Permalink
Add a test for issue-132874
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ysk committed Nov 17, 2024
1 parent f2a3542 commit 8a65eb9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ui/lint/dead-code/issue-132874-false-positive.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//@ check-pass

// Make sure we don't have any false positives here.

#![deny(dead_code)]

struct Foo(usize);

fn get_thing<T>() -> T { todo!() }

pub fn main() {
let Foo(_x) = get_thing();
}

0 comments on commit 8a65eb9

Please sign in to comment.