rust/tests/ui/rfc-2091-track-caller/only-for-fns.rs
2023-01-11 09:32:08 +00:00

6 lines
105 B
Rust

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