]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | fn foo<T, U>(x: T, y: U) { |
2 | let mut xx = x; | |
85aaf69f SL |
3 | xx = y; |
4 | //~^ ERROR mismatched types | |
60c5eb7d XL |
5 | //~| expected type parameter `T`, found type parameter `U` |
6 | //~| expected type parameter `T` | |
7 | //~| found type parameter `U` | |
223e47cc LB |
8 | } |
9 | ||
10 | fn main() { | |
223e47cc | 11 | } |