blob: dff82058b40468e0af01c3399c9761a8b21e1e5d [file]
#![feature(no_core)]
#![no_core]
trait Foo {
fn f(&self) -> isize;
}
trait Bar: Foo {
fn g(&self) -> isize;
}
struct A {
x: isize,
}
impl Bar for A {
// { dg-error "the trait bound .A: Foo. is not satisfied .E0277." "" { target *-*-* } .-1 }
fn g(&self) -> isize {
self.f()
}
}