]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/universal-mismatched-type.stderr
New upstream version 1.32.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / universal-mismatched-type.stderr
CommitLineData
abe05a73 1error[E0308]: mismatched types
0531ce1d 2 --> $DIR/universal-mismatched-type.rs:14:5
abe05a73 3 |
0531ce1d 4LL | fn foo(x: impl Debug) -> String {
abe05a73 5 | ------ expected `std::string::String` because of return type
0531ce1d 6LL | 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
12error: aborting due to previous error
13
0531ce1d 14For more information about this error, try `rustc --explain E0308`.