2019-12-14 04:28:32 +01:00
|
|
|
//@ build-fail
|
|
|
|
|
|
2015-02-27 17:13:30 +02: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]
|
2025-03-29 02:41:32 +03:00
|
|
|
fn fail(self) {} //~ ERROR symbol `fail` is already defined
|
2015-02-27 17:13:30 +02:00
|
|
|
}
|