File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ error[E0308]: mismatched types
7
7
| ^ expected struct `std::string::String`, found type parameter
8
8
|
9
9
= note: expected type `std::string::String`
10
- found type ``
10
+ found type `impl Debug `
11
11
12
12
error: aborting due to previous error
13
13
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments