体验新版 GitCode,发现更多精彩内容 >>
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-trait-fn-impl.rs:3:12
| LL | #![feature(track_caller)] | ^^^^^^^^^^^^ | = note: `#[warn(incomplete_features)]` on by default
error[E0738]: `#[track_caller]` may not be used on trait methods
--> $DIR/error-with-trait-fn-impl.rs:10:5
| LL | #[track_caller] | ^^^^^^^^^^^^^^^ error: aborting due to previous error
For more information about this error, try `rustc --explain E0738`.