summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-parameter-names.rs
blob: b54a3fae0c1a14c01f2dc1c412c9440759dd6ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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 parameter `Bar`, found type parameter `Foo`
//~| expected type parameter `Bar`
//~| found type parameter `Foo`
}

fn main() {}