rust/tests/ui/issues/issue-2951.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
243 B
Rust
Raw Normal View History

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
//~| expected type parameter `T`, found type parameter `U`
//~| expected type parameter `T`
//~| found type parameter `U`
2012-12-06 18:13:40 -06:00
}
fn main() {
}