Move 'coherence-overlapping-inherent-impl-trait' test to ui
This commit is contained in:
parent
09f42ee333
commit
db60b0b374
@ -11,6 +11,6 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
trait C {}
|
||||
impl C { fn f() {} } //~ ERROR duplicate definitions with name `f`
|
||||
impl C { fn f() {} }
|
||||
impl C { fn f() {} }
|
||||
fn main() { }
|
@ -0,0 +1,10 @@
|
||||
error[E0592]: duplicate definitions with name `f`
|
||||
--> $DIR/coherence-overlapping-inherent-impl-trait.rs:14:10
|
||||
|
|
||||
14 | impl C { fn f() {} }
|
||||
| ^^^^^^^^^ duplicate definitions for `f`
|
||||
15 | impl C { fn f() {} }
|
||||
| --------- other definition for `f`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
Reference in New Issue
Block a user