summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2091-track-caller/only-for-fns.stderr
blob: b36597bded9414c2fc828953a3b0114492903802 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0739]: attribute should be applied to a function definition
  --> $DIR/only-for-fns.rs:1:1
   |
LL | #[track_caller]
   | ^^^^^^^^^^^^^^^
LL | struct S;
   | --------- not a function definition

error: aborting due to previous error

For more information about this error, try `rustc --explain E0739`.