Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
lint
/
unused_variables-issue-82488.fixed
blob: 3cb2c90d0d34822f5ac271bbf6ab7d8e9b57116a [
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
});
}