mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
15 lines
235 B
Rust
15 lines
235 B
Rust
#![feature(tool_lints)]
|
|
|
|
#![feature(tool_attributes)]
|
|
#![feature(stmt_expr_attributes)]
|
|
|
|
struct Outer {
|
|
inner: u32,
|
|
}
|
|
|
|
#[deny(clippy::ref_in_deref)]
|
|
fn main() {
|
|
let outer = Outer { inner: 0 };
|
|
let inner = (&outer).inner;
|
|
}
|