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-07 00:13:40 +00:00
fn foo<T, U>(x: T, y: U) {
let mut xx = x;
2015-01-12 06:01:44 +00:00
xx = y;
//~^ ERROR mismatched types
//~| expected type parameter `T`, found type parameter `U`
//~| expected type parameter `T`
//~| found type parameter `U`
2012-12-07 00:13:40 +00:00
}
fn main() {
}