]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/universal-mismatched-type.stderr
Remove licenses
[rust.git] / src / test / ui / impl-trait / universal-mismatched-type.stderr
1 error[E0308]: mismatched types
2   --> $DIR/universal-mismatched-type.rs:4:5
3    |
4 LL | fn foo(x: impl Debug) -> String {
5    |                          ------ expected `std::string::String` because of return type
6 LL |     x //~ ERROR mismatched types
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
14 For more information about this error, try `rustc --explain E0308`.