File tree 2 files changed +32
-3
lines changed
src/test/ui/codemap_tests
2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 16
16
struct Foo ;
17
17
18
18
impl Foo {
19
- fn id ( ) { } //~ ERROR duplicate definitions
19
+ fn id ( ) { }
20
20
}
21
21
22
22
impl Foo {
@@ -26,7 +26,7 @@ impl Foo {
26
26
struct Bar < T > ( T ) ;
27
27
28
28
impl < T > Bar < T > {
29
- fn bar ( & self ) { } //~ ERROR duplicate definitions
29
+ fn bar ( & self ) { }
30
30
}
31
31
32
32
impl Bar < u32 > {
@@ -36,7 +36,7 @@ impl Bar<u32> {
36
36
struct Baz < T > ( T ) ;
37
37
38
38
impl < T : Copy > Baz < T > {
39
- fn baz ( & self ) { } //~ ERROR duplicate definitions
39
+ fn baz ( & self ) { }
40
40
}
41
41
42
42
impl < T > Baz < Vec < T > > {
Original file line number Diff line number Diff line change
1
+ error[E0592]: duplicate definitions with name `id`
2
+ --> $DIR/overlapping_inherent_impls.rs:19:5
3
+ |
4
+ 19 | fn id() {}
5
+ | ^^^^^^^^^^ duplicate definitions for `id`
6
+ ...
7
+ 23 | fn id() {}
8
+ | ---------- other definition for `id`
9
+
10
+ error[E0592]: duplicate definitions with name `bar`
11
+ --> $DIR/overlapping_inherent_impls.rs:29:5
12
+ |
13
+ 29 | fn bar(&self) {}
14
+ | ^^^^^^^^^^^^^^^^ duplicate definitions for `bar`
15
+ ...
16
+ 33 | fn bar(&self) {}
17
+ | ---------------- other definition for `bar`
18
+
19
+ error[E0592]: duplicate definitions with name `baz`
20
+ --> $DIR/overlapping_inherent_impls.rs:39:5
21
+ |
22
+ 39 | fn baz(&self) {}
23
+ | ^^^^^^^^^^^^^^^^ duplicate definitions for `baz`
24
+ ...
25
+ 43 | fn baz(&self) {}
26
+ | ---------------- other definition for `baz`
27
+
28
+ error: aborting due to 3 previous errors
29
+
You can’t perform that action at this time.
0 commit comments