]> git.lizzy.rs Git - rust.git/blob - tests/ui/unnecessary_ref.fixed
iterate List by value
[rust.git] / tests / ui / unnecessary_ref.fixed
1 // run-rustfix
2
3 #![feature(stmt_expr_attributes)]
4 #![allow(unused_variables)]
5
6 struct Outer {
7     inner: u32,
8 }
9
10 #[deny(clippy::ref_in_deref)]
11 fn main() {
12     let outer = Outer { inner: 0 };
13     let inner = outer.inner;
14 }