]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2091-track-caller/error-with-trait-decl.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / rfc-2091-track-caller / error-with-trait-decl.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
8impl Trait for u64 {
9 fn unwrap(&self) {}
10}
11
12fn main() {}