]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | error[E0308]: mismatched types |
0531ce1d | 2 | --> $DIR/universal-mismatched-type.rs:14:5 |
abe05a73 | 3 | | |
0531ce1d | 4 | LL | fn foo(x: impl Debug) -> String { |
abe05a73 | 5 | | ------ expected `std::string::String` because of return type |
0531ce1d | 6 | LL | x //~ ERROR mismatched types |
abe05a73 XL |
7 | | ^ expected struct `std::string::String`, found type parameter |
8 | | | |
9 | = note: expected type `std::string::String` | |
10 | found type `impl Debug` | |
11 | ||
12 | error: aborting due to previous error | |
13 | ||
0531ce1d | 14 | For more information about this error, try `rustc --explain E0308`. |