Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
lint
/
unused_variables-issue-82488.rs
blob: a0b9ac1078d27872ba0bcf5201f8c319eaac2fee [
file
] [
log
] [
blame
] [
edit
]
//@ 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
});
}