]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-parameter-names.rs
Auto merge of #99443 - jam1garner:mips-virt-feature, r=nagisa
[rust.git] / src / test / 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() {}