]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generics/generic-arg-mismatch-recover.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / generics / generic-arg-mismatch-recover.rs
CommitLineData
b7449926
XL
1struct Foo<'a, T: 'a>(&'a T);
2
3struct Bar<'a>(&'a ());
4
7453a54e 5fn main() {
5869c6ff
XL
6 Foo::<'static, 'static, ()>(&0);
7 //~^ ERROR this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
b7449926 8
5869c6ff
XL
9 Bar::<'static, 'static, ()>(&());
10 //~^ ERROR this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
17df50a5 11 //~| ERROR this struct takes 0
223e47cc 12}