2019-12-13 21:28:32 -06:00
|
|
|
// build-fail
|
|
|
|
|
2015-02-27 09:13:30 -06:00
|
|
|
//
|
2015-03-20 08:09:00 -05:00
|
|
|
// error-pattern: symbol `fail` is already defined
|
2015-02-27 09:13:30 -06:00
|
|
|
#![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) {}
|
|
|
|
}
|