fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2#![deny(unused_variables)] 3 4struct Point { 5 x: u32, 6 y: u32 7} 8 9fn process_point(Point { x, y: _renamed }: Point) { 10//~^ ERROR unused variable: `renamed` 11 let _ = x; 12} 13 14fn main() { 15 process_point(Point { x: 0, y: 0 }); 16}