Skip to content

Commit 8a65eb9

Browse files
committed
Add a test for issue-132874
1 parent f2a3542 commit 8a65eb9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//@ check-pass
2+
3+
// Make sure we don't have any false positives here.
4+
5+
#![deny(dead_code)]
6+
7+
struct Foo(usize);
8+
9+
fn get_thing<T>() -> T { todo!() }
10+
11+
pub fn main() {
12+
let Foo(_x) = get_thing();
13+
}

0 commit comments

Comments
 (0)