fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
247 B16 linesraw
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}