Skip to content

Commit 00842d1

Browse files
committed
Move a test to ui tests so we can observe the output changes better
1 parent 0874ba0 commit 00842d1

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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`.

0 commit comments

Comments
 (0)