rust/tests/ui/rfcs/rfc-2091-track-caller/only-for-fns.rs
2023-06-05 16:09:46 +00:00

6 lines
105 B
Rust

#[track_caller]
struct S;
//~^^ ERROR attribute should be applied to a function definition
fn main() {}