Skip to content

Commit f710d41

Browse files
committed
Add/Fix stderr references for impl Trait ui tests
1 parent b276429 commit f710d41

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

src/test/ui/impl-trait/universal-mismatched-type.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ error[E0308]: mismatched types
77
| ^ expected struct `std::string::String`, found type parameter
88
|
99
= note: expected type `std::string::String`
10-
found type ``
10+
found type `impl Debug`
1111

1212
error: aborting due to previous error
1313

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
error[E0425]: cannot find function `wants_clone` in this scope
2+
--> $DIR/universal_wrong_bounds.rs:18:5
3+
|
4+
18 | wants_clone(f);
5+
| ^^^^^^^^^^^ did you mean `wants_cone`?
6+
7+
error[E0405]: cannot find trait `Debug` in this scope
8+
--> $DIR/universal_wrong_bounds.rs:21:24
9+
|
10+
21 | fn wants_debug(g: impl Debug) { }
11+
| ^^^^^ not found in this scope
12+
|
13+
help: possible candidate is found in another module, you can import it into scope
14+
|
15+
13 | use std::fmt::Debug;
16+
|
17+
18+
error[E0405]: cannot find trait `Debug` in this scope
19+
--> $DIR/universal_wrong_bounds.rs:22:26
20+
|
21+
22 | fn wants_display(g: impl Debug) { }
22+
| ^^^^^ not found in this scope
23+
|
24+
help: possible candidate is found in another module, you can import it into scope
25+
|
26+
13 | use std::fmt::Debug;
27+
|
28+
29+
error: cannot continue compilation due to previous error
30+

0 commit comments

Comments
 (0)