]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2091-track-caller/error-with-trait-default-impl.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / rfc-2091-track-caller / error-with-trait-default-impl.rs
CommitLineData
60c5eb7d 1#![feature(track_caller)]
e74abb32
XL
2
3trait Trait {
4 #[track_caller] //~ ERROR: `#[track_caller]` may not be used on trait methods
5 fn unwrap(&self) {}
6}
7
8fn main() {}