diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-2951.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-2951.rs b/src/test/ui/issues/issue-2951.rs new file mode 100644 index 000000000..1798e3e75 --- /dev/null +++ b/src/test/ui/issues/issue-2951.rs @@ -0,0 +1,11 @@ +fn foo<T, U>(x: T, y: U) { + let mut xx = x; + xx = y; + //~^ ERROR mismatched types + //~| expected type parameter `T`, found type parameter `U` + //~| expected type parameter `T` + //~| found type parameter `U` +} + +fn main() { +} |