blob: e0ae3ffa6240d39d64afcac24bfc3137f4c5fc32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
fn foo<T, U>(x: T, y: U) {
let mut xx = x;
xx = y;
//~^ ERROR mismatched types
//~| expected type `T`
//~| found type `U`
//~| expected type parameter, found a different type parameter
}
fn main() {
}
|