]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | struct Foo<'a, T: 'a>(&'a T); |
2 | ||
3 | struct Bar<'a>(&'a ()); | |
4 | ||
7453a54e | 5 | fn 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 | } |