]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2091-track-caller/only-for-fns.stderr
Rollup merge of #96763 - Abdur-rahmaanJ:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / rfc-2091-track-caller / only-for-fns.stderr
1 error[E0739]: attribute should be applied to a function definition
2   --> $DIR/only-for-fns.rs:1:1
3    |
4 LL | #[track_caller]
5    | ^^^^^^^^^^^^^^^
6 LL | struct S;
7    | --------- not a function definition
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0739`.