blob: 1e91b06079267b6374128eb327942d939f3b990d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#![feature(rustc_attrs)]
#[rustc_must_implement_one_of(a, a)]
//~^ ERROR functions names are duplicated
trait Trait {
fn a() {}
}
#[rustc_must_implement_one_of(b, a, a, c, b, c)]
//~^ ERROR functions names are duplicated
//~| ERROR functions names are duplicated
//~| ERROR functions names are duplicated
trait Trait1 {
fn a() {}
fn b() {}
fn c() {}
}
fn main() {}
|