mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-02 17:40:13 +00:00
13 lines
202 B
Rust
13 lines
202 B
Rust
|
#![feature(tool_attributes)]
|
||
|
#![feature(stmt_expr_attributes)]
|
||
|
|
||
|
struct Outer {
|
||
|
inner: u32,
|
||
|
}
|
||
|
|
||
|
#[deny(ref_in_deref)]
|
||
|
fn main() {
|
||
|
let outer = Outer { inner: 0 };
|
||
|
let inner = (&outer).inner;
|
||
|
}
|