]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-parameter-names.rs
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / ui / type / type-parameter-names.rs
1 // Test that we print out the names of type parameters correctly in
2 // our error messages.
3
4 fn foo<Foo, Bar>(x: Foo) -> Bar {
5     x
6 //~^ ERROR mismatched types
7 //~| expected type parameter `Bar`, found type parameter `Foo`
8 //~| expected type parameter `Bar`
9 //~| found type parameter `Foo`
10 }
11
12 fn main() {}