Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
df59800b0875719b6f661cc191fa35263a29efa3
/
.
/
tests
/
ui
/
lint
/
unused_variables-issue-82488.fixed
blob: e5a22a22291a765fa869f172cea2f2a2e943582d [
file
] [
log
] [
blame
]
//@ run-rustfix
#![deny(unused_variables)]
struct
Point
{
x
:
u32
,
y
:
u32
}
fn process_point
(
Point
{
x
,
y
:
_renamed
}:
Point
)
{
//~^ ERROR unused variable: `renamed`
let
_
=
x
;
}
fn main
()
{
process_point
(
Point
{
x
:
0
,
y
:
0
});
}