2018-12-09 09:18:16 -06:00
|
|
|
// run-rustfix
|
|
|
|
|
2018-05-28 02:29:02 -05:00
|
|
|
#![feature(stmt_expr_attributes)]
|
2018-12-09 10:25:45 -06:00
|
|
|
#![allow(unused_variables)]
|
2018-05-28 02:29:02 -05:00
|
|
|
|
|
|
|
struct Outer {
|
|
|
|
inner: u32,
|
|
|
|
}
|
|
|
|
|
2018-07-28 10:34:52 -05:00
|
|
|
#[deny(clippy::ref_in_deref)]
|
2018-05-28 02:29:02 -05:00
|
|
|
fn main() {
|
|
|
|
let outer = Outer { inner: 0 };
|
|
|
|
let inner = (&outer).inner;
|
|
|
|
}
|