fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0308]: mismatched types 2 --> $DIR/issue-2951.rs:3:10 3 | 4LL | fn foo<T, U>(x: T, y: U) { 5 | - - found type parameter 6 | | 7 | expected type parameter 8LL | let mut xx = x; 9LL | xx = y; 10 | ^ expected type parameter `T`, found type parameter `U` 11 | 12 = note: expected type parameter `T` 13 found type parameter `U` 14 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound 15 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0308`.