rust-clippy/tests/ui/unnecessary_ref.fixed
2019-01-08 21:46:39 +01:00

14 lines
222 B
Rust

// run-rustfix
#![feature(stmt_expr_attributes)]
#![allow(unused_variables)]
struct Outer {
inner: u32,
}
#[deny(clippy::ref_in_deref)]
fn main() {
let outer = Outer { inner: 0 };
let inner = outer.inner;
}