]> git.proxmox.com Git - rustc.git/blame - src/test/ui/error-codes/E0107.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0107.rs
CommitLineData
3157f602 1struct Foo<'a>(&'a str);
5bcae85e 2struct Buzz<'a, 'b>(&'a str, &'b str);
3157f602
XL
3
4enum Bar {
5 A,
6 B,
7 C,
8}
9
5bcae85e 10struct Baz<'a, 'b, 'c> {
5bcae85e 11 buzz: Buzz<'a>,
5869c6ff
XL
12 //~^ ERROR this struct takes 2 lifetime arguments but only 1 lifetime argument was supplied
13 //~| HELP add missing lifetime argument
14
5bcae85e 15 bar: Bar<'a>,
5869c6ff
XL
16 //~^ ERROR this enum takes 0 lifetime arguments but 1 lifetime argument was supplied
17 //~| HELP remove these generics
18
5bcae85e 19 foo2: Foo<'a, 'b, 'c>,
5869c6ff
XL
20 //~^ ERROR this struct takes 1 lifetime argument but 3 lifetime arguments were supplied
21 //~| HELP remove these lifetime arguments
a7813a04
XL
22}
23
b7449926 24fn main() {}