File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ error[E0643]: method `foo` has incompatible signature for trait
2
+ --> $DIR/impl-generic-mismatch.rs:18:12
3
+ |
4
+ LL | fn foo(&self, _: &impl Debug);
5
+ | ---------- annotation in trait
6
+ ...
7
+ LL | fn foo<U: Debug>(&self, _: &U) { }
8
+ | ^ annotation in impl
9
+
10
+ error[E0643]: method `bar` has incompatible signature for trait
11
+ --> $DIR/impl-generic-mismatch.rs:27:23
12
+ |
13
+ LL | fn bar<U: Debug>(&self, _: &U);
14
+ | - annotation in trait
15
+ ...
16
+ LL | fn bar(&self, _: &impl Debug) { }
17
+ | ^^^^^^^^^^ annotation in impl
18
+
19
+ error[E0643]: method `hash` has incompatible signature for trait
20
+ --> $DIR/impl-generic-mismatch.rs:38:33
21
+ |
22
+ LL | fn hash(&self, hasher: &mut impl Hasher) {}
23
+ | ^^^^^^^^^^^ annotation in impl
24
+ |
25
+ ::: /home/oliver/Projects/rust/rust3/src/libcore/hash/mod.rs:185:13
26
+ |
27
+ LL | fn hash<H: Hasher>(&self, state: &mut H);
28
+ | - annotation in trait
29
+
30
+ error: aborting due to 3 previous errors
31
+
32
+ For more information about this error, try `rustc --explain E0643`.
You can’t perform that action at this time.
0 commit comments