]> git.proxmox.com Git - rustc.git/blob - tests/ui/impl-trait/universal-mismatched-type.stderr
New upstream version 1.69.0+dfsg1
[rustc.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 `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`.