]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic/generic-arg-mismatch-recover.rs
New upstream version 1.48.0+dfsg1
[rustc.git] / src / test / ui / generic / 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 }