summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/universal-mismatched-type.stderr
blob: 82e0f23964f78bbbea81f1fad738464cc890f46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0308]: mismatched types
  --> $DIR/universal-mismatched-type.rs:4:5
   |
LL | fn foo(x: impl Debug) -> String {
   |           ----------     ------ expected `String` because of return type
   |           |
   |           found this type parameter
LL |     x
   |     ^ expected `String`, found type parameter `impl Debug`
   |
   = note:      expected struct `String`
           found type parameter `impl Debug`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.