2012-12-06 18:13:40 -06:00
|
|
|
fn foo<T, U>(x: T, y: U) {
|
|
|
|
let mut xx = x;
|
2015-01-12 00:01:44 -06:00
|
|
|
xx = y;
|
|
|
|
//~^ ERROR mismatched types
|
2019-10-31 22:58:37 -05:00
|
|
|
//~| expected type parameter `T`, found type parameter `U`
|
2019-11-13 16:16:56 -06:00
|
|
|
//~| expected type parameter `T`
|
|
|
|
//~| found type parameter `U`
|
2012-12-06 18:13:40 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2013-02-14 13:47:00 -06:00
|
|
|
}
|