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