blob: a36f9d0fcbc3db2cdbc9718939cc6cd14c2138da [file]
#![feature(coverage_attribute)]
// Checks that `#[coverage(..)]` in a trait method is not inherited in an
// implementation.
//@ edition: 2021
trait T {
#[coverage(off)]
fn f(&self) {
println!("default");
}
}
struct S;
impl T for S {
fn f(&self) {
println!("impl S");
}
}
#[coverage(off)]
fn main() {
S.f();
}