blob: 34c611b99b38bbe728af67221f85b138a72bec42 [file] [log] [blame]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct S;
trait A {
fn foo(&self);
}
trait B: A {
fn foo(&self);
}
impl A for S {
fn foo(&self) {}
}
impl B for S {
fn foo(&self) {}
}
// E0592
fn test() {
let a = S;
a.foo();
// { dg-error "duplicate definitions with name .foo." "" { target *-*-* } .-1 }
}