blob: b38b277a1422b52cfe631a527aa8c35bf36851e1 [file] [log] [blame]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct Foo<A, B>(A, B);
impl<T> Foo<i32, T> {
fn test(a: T) -> T { // { dg-error "duplicate definitions with name .test." }
a
}
}
impl Foo<i32, f32> {
fn test() -> f32 { // { dg-error "duplicate definitions with name .test." }
123f32
}
}
fn main() {}