13 lines
209 B
Rust
13 lines
209 B
Rust
#![feature(track_caller)]
|
|
|
|
trait Trait {
|
|
#[track_caller] //~ ERROR: `#[track_caller]` may not be used on trait methods
|
|
fn unwrap(&self);
|
|
}
|
|
|
|
impl Trait for u64 {
|
|
fn unwrap(&self) {}
|
|
}
|
|
|
|
fn main() {}
|