Move 'coherence-overlapping-inherent-impl-trait' test to ui

This commit is contained in:
topecongiro 2017-04-04 21:08:56 +09:00
parent 09f42ee333
commit db60b0b374
2 changed files with 11 additions and 1 deletions

View File

@ -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() { }

View File

@ -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