]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused_variables-issue-82488.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / unused_variables-issue-82488.rs
1 // run-rustfix
2 #![deny(unused_variables)]
3
4 struct Point {
5     x: u32,
6     y: u32
7 }
8
9 fn process_point(Point { x, y: renamed }: Point) {
10 //~^ ERROR unused variable: `renamed`
11     let _ = x;
12 }
13
14 fn main() {
15     process_point(Point { x: 0, y: 0 });
16 }