blob: d961ba10e72fe81938eb8862b624c007097ef94a [file] [log] [blame]
//@ build-fail
#![crate_type="rlib"]
#![allow(warnings)]
pub trait A {
fn fail(self);
}
struct B;
struct C;
impl A for B {
#[no_mangle]
fn fail(self) {}
}
impl A for C {
#[no_mangle]
fn fail(self) {} //~ ERROR symbol `fail` is already defined
}