blob: b6b3795d09bfb7ad5b7f3ccc542a42393bc795b9 [file] [log] [blame]
// Test that we print out the names of type parameters correctly in
// our error messages.
fn foo<Foo, Bar>(x: Foo) -> Bar {
x
//~^ ERROR mismatched types
//~| expected type `Bar`
//~| found type `Foo`
//~| expected type parameter, found a different type parameter
}
fn main() {}