#[pointee] attribute can be applied to anything · Issue #128485 · rust-lang/rust (original) (raw)

I tried this code:

#![feature(derive_smart_pointer)]

#[pointee] fn main() {}

I expected to see this happen: compilation failure

Instead, this happened: compilation succeeded

Meta

rustc --version --verbose:

1.82.0-nightly

2024-07-31 28a58f2fa7f0c46b8fab

cc #123430

see #128444 for where to fix this issue