]> git.lizzy.rs Git - rust.git/blob - src/test/ui/duplicate/dupe-symbols-4.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / duplicate / dupe-symbols-4.rs
1 // build-fail
2
3 //
4 // error-pattern: symbol `fail` is already defined
5 #![crate_type="rlib"]
6 #![allow(warnings)]
7
8
9 pub trait A {
10     fn fail(self);
11 }
12
13 struct B;
14 struct C;
15
16 impl A for B {
17     #[no_mangle]
18     fn fail(self) {}
19 }
20
21 impl A for C {
22     #[no_mangle]
23     fn fail(self) {}
24 }