rust/src/test/ui/issues/issue-2951.rs
2018-12-25 21:08:33 -07:00

11 lines
227 B
Rust

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() {
}