]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/universal-mismatched-type.stderr
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / 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 `String` because of return type
6    |           |
7    |           this type parameter
8 LL |     x
9    |     ^ expected struct `String`, found type parameter `impl Debug`
10    |
11    = note:      expected struct `String`
12            found type parameter `impl Debug`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.