]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2091-track-caller/only-for-fns.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / rfc-2091-track-caller / only-for-fns.rs
1 #[track_caller]
2 struct S;
3 //~^^ ERROR attribute should be applied to a function definition
4
5 fn main() {}