]> git.lizzy.rs Git - rust.git/blob - src/test/ui/constructor-lifetime-args.stderr
Auto merge of #101768 - sunfishcode:sunfishcode/wasi-stdio-lock-asfd, r=joshtriplett
[rust.git] / src / test / ui / constructor-lifetime-args.stderr
1 error[E0107]: this struct takes 2 lifetime arguments but 1 lifetime argument was supplied
2   --> $DIR/constructor-lifetime-args.rs:17:5
3    |
4 LL |     S::<'static>(&0, &0);
5    |     ^   ------- supplied 1 lifetime argument
6    |     |
7    |     expected 2 lifetime arguments
8    |
9 note: struct defined here, with 2 lifetime parameters: `'a`, `'b`
10   --> $DIR/constructor-lifetime-args.rs:9:8
11    |
12 LL | struct S<'a, 'b>(&'a u8, &'b u8);
13    |        ^ --  --
14 help: add missing lifetime argument
15    |
16 LL |     S::<'static, 'b>(&0, &0);
17    |                ++++
18
19 error[E0107]: this struct takes 2 lifetime arguments but 3 lifetime arguments were supplied
20   --> $DIR/constructor-lifetime-args.rs:19:5
21    |
22 LL |     S::<'static, 'static, 'static>(&0, &0);
23    |     ^                     ------- help: remove this lifetime argument
24    |     |
25    |     expected 2 lifetime arguments
26    |
27 note: struct defined here, with 2 lifetime parameters: `'a`, `'b`
28   --> $DIR/constructor-lifetime-args.rs:9:8
29    |
30 LL | struct S<'a, 'b>(&'a u8, &'b u8);
31    |        ^ --  --
32
33 error[E0107]: this enum takes 2 lifetime arguments but 1 lifetime argument was supplied
34   --> $DIR/constructor-lifetime-args.rs:22:8
35    |
36 LL |     E::V::<'static>(&0);
37    |        ^   ------- supplied 1 lifetime argument
38    |        |
39    |        expected 2 lifetime arguments
40    |
41 note: enum defined here, with 2 lifetime parameters: `'a`, `'b`
42   --> $DIR/constructor-lifetime-args.rs:10:6
43    |
44 LL | enum E<'a, 'b> {
45    |      ^ --  --
46 help: add missing lifetime argument
47    |
48 LL |     E::V::<'static, 'b>(&0);
49    |                   ++++
50
51 error[E0107]: this enum takes 2 lifetime arguments but 3 lifetime arguments were supplied
52   --> $DIR/constructor-lifetime-args.rs:24:8
53    |
54 LL |     E::V::<'static, 'static, 'static>(&0);
55    |        ^                     ------- help: remove this lifetime argument
56    |        |
57    |        expected 2 lifetime arguments
58    |
59 note: enum defined here, with 2 lifetime parameters: `'a`, `'b`
60   --> $DIR/constructor-lifetime-args.rs:10:6
61    |
62 LL | enum E<'a, 'b> {
63    |      ^ --  --
64
65 error: aborting due to 4 previous errors
66
67 For more information about this error, try `rustc --explain E0107`.