summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2091-track-caller/only-for-fns.rs
blob: 2d2b01b6f947aea42b4b864f3d453ea9aed78ef0 (plain)
1
2
3
4
5
#[track_caller]
struct S;
//~^^ ERROR attribute should be applied to a function definition

fn main() {}