]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/generic-arg-mismatch-recover.rs
Rollup merge of #80398 - CAD97:fix-80365, r=dtolnay
[rust.git] / src / test / ui / generics / generic-arg-mismatch-recover.rs
1 struct Foo<'a, T: 'a>(&'a T);
2
3 struct Bar<'a>(&'a ());
4
5 fn main() {
6     Foo::<'static, 'static, ()>(&0); //~ ERROR wrong number of lifetime arguments
7
8     Bar::<'static, 'static, ()>(&()); //~ ERROR wrong number of lifetime arguments
9     //~^ ERROR wrong number of type arguments
10 }