Skip to content

Commit db60b0b

Browse files
committed
Move 'coherence-overlapping-inherent-impl-trait' test to ui
1 parent 09f42ee commit db60b0b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/test/compile-fail/coherence-overlapping-inherent-impl-trait.rs renamed to src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
#![allow(dead_code)]
1212

1313
trait C {}
14-
impl C { fn f() {} } //~ ERROR duplicate definitions with name `f`
14+
impl C { fn f() {} }
1515
impl C { fn f() {} }
1616
fn main() { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error[E0592]: duplicate definitions with name `f`
2+
--> $DIR/coherence-overlapping-inherent-impl-trait.rs:14:10
3+
|
4+
14 | impl C { fn f() {} }
5+
| ^^^^^^^^^ duplicate definitions for `f`
6+
15 | impl C { fn f() {} }
7+
| --------- other definition for `f`
8+
9+
error: aborting due to previous error
10+

0 commit comments

Comments
 (0)