1 `#[track_caller]` cannot be used in traits yet. This is due to limitations in
2 the compiler which are likely to be temporary. See [RFC 2091] for details on
3 this and other restrictions.
5 Erroneous example with a trait method implementation:
8 #![feature(track_caller)]
20 Erroneous example with a blanket trait method implementation:
23 #![feature(track_caller)]
32 Erroneous example with a trait method declaration:
35 #![feature(track_caller)]
45 Note that while the compiler may be able to support the attribute in traits in
46 the future, [RFC 2091] prohibits their implementation without a follow-up RFC.
48 [RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md