]>
Commit | Line | Data |
---|---|---|
17df50a5 XL |
1 | error[E0107]: this struct takes 2 lifetime arguments but 1 lifetime argument was supplied |
2 | --> $DIR/E0107.rs:13:11 | |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | buzz: Buzz<'a>, |
5869c6ff XL |
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/E0107.rs:2:8 | |
11 | | | |
12 | LL | struct Buzz<'a, 'b>(&'a str, &'b str); | |
13 | | ^^^^ -- -- | |
14 | help: add missing lifetime argument | |
15 | | | |
17df50a5 | 16 | LL | buzz: Buzz<'a, 'a>, |
94222f64 | 17 | | ++++ |
2c00a5a8 | 18 | |
5869c6ff | 19 | error[E0107]: this enum takes 0 lifetime arguments but 1 lifetime argument was supplied |
17df50a5 | 20 | --> $DIR/E0107.rs:17:10 |
2c00a5a8 | 21 | | |
0531ce1d | 22 | LL | bar: Bar<'a>, |
5869c6ff XL |
23 | | ^^^---- help: remove these generics |
24 | | | | |
25 | | expected 0 lifetime arguments | |
26 | | | |
27 | note: enum defined here, with 0 lifetime parameters | |
17df50a5 | 28 | --> $DIR/E0107.rs:6:6 |
5869c6ff XL |
29 | | |
30 | LL | enum Bar { | |
31 | | ^^^ | |
2c00a5a8 | 32 | |
5869c6ff | 33 | error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied |
17df50a5 | 34 | --> $DIR/E0107.rs:21:11 |
2c00a5a8 | 35 | | |
0531ce1d | 36 | LL | foo2: Foo<'a, 'b, 'c>, |
17df50a5 | 37 | | ^^^ ------ help: remove these lifetime arguments |
5869c6ff XL |
38 | | | |
39 | | expected 1 lifetime argument | |
40 | | | |
41 | note: struct defined here, with 1 lifetime parameter: `'a` | |
42 | --> $DIR/E0107.rs:1:8 | |
43 | | | |
44 | LL | struct Foo<'a>(&'a str); | |
45 | | ^^^ -- | |
2c00a5a8 | 46 | |
17df50a5 XL |
47 | error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied |
48 | --> $DIR/E0107.rs:25:11 | |
49 | | | |
50 | LL | qux1: Qux<'a, 'b, i32>, | |
51 | | ^^^ -- help: remove this lifetime argument | |
52 | | | | |
53 | | expected 1 lifetime argument | |
54 | | | |
55 | note: struct defined here, with 1 lifetime parameter: `'a` | |
56 | --> $DIR/E0107.rs:3:8 | |
57 | | | |
58 | LL | struct Qux<'a, T>(&'a T); | |
59 | | ^^^ -- | |
60 | ||
61 | error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied | |
62 | --> $DIR/E0107.rs:29:11 | |
63 | | | |
64 | LL | qux2: Qux<'a, i32, 'b>, | |
65 | | ^^^ -- help: remove this lifetime argument | |
66 | | | | |
67 | | expected 1 lifetime argument | |
68 | | | |
69 | note: struct defined here, with 1 lifetime parameter: `'a` | |
70 | --> $DIR/E0107.rs:3:8 | |
71 | | | |
72 | LL | struct Qux<'a, T>(&'a T); | |
73 | | ^^^ -- | |
74 | ||
75 | error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied | |
76 | --> $DIR/E0107.rs:33:11 | |
77 | | | |
78 | LL | qux3: Qux<'a, 'b, 'c, i32>, | |
79 | | ^^^ ------ help: remove these lifetime arguments | |
80 | | | | |
81 | | expected 1 lifetime argument | |
82 | | | |
83 | note: struct defined here, with 1 lifetime parameter: `'a` | |
84 | --> $DIR/E0107.rs:3:8 | |
85 | | | |
86 | LL | struct Qux<'a, T>(&'a T); | |
87 | | ^^^ -- | |
88 | ||
89 | error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied | |
90 | --> $DIR/E0107.rs:37:11 | |
91 | | | |
92 | LL | qux4: Qux<'a, i32, 'b, 'c>, | |
93 | | ^^^ ------ help: remove these lifetime arguments | |
94 | | | | |
95 | | expected 1 lifetime argument | |
96 | | | |
97 | note: struct defined here, with 1 lifetime parameter: `'a` | |
98 | --> $DIR/E0107.rs:3:8 | |
99 | | | |
100 | LL | struct Qux<'a, T>(&'a T); | |
101 | | ^^^ -- | |
102 | ||
103 | error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied | |
104 | --> $DIR/E0107.rs:41:11 | |
105 | | | |
106 | LL | qux5: Qux<'a, 'b, i32, 'c>, | |
107 | | ^^^ -- help: remove this lifetime argument | |
108 | | | | |
109 | | expected 1 lifetime argument | |
110 | | | |
111 | note: struct defined here, with 1 lifetime parameter: `'a` | |
112 | --> $DIR/E0107.rs:3:8 | |
113 | | | |
114 | LL | struct Qux<'a, T>(&'a T); | |
115 | | ^^^ -- | |
116 | ||
117 | error[E0107]: this struct takes 0 lifetime arguments but 2 lifetime arguments were supplied | |
118 | --> $DIR/E0107.rs:45:11 | |
119 | | | |
120 | LL | quux: Quux<'a, i32, 'b>, | |
121 | | ^^^^ -- help: remove this lifetime argument | |
122 | | | | |
123 | | expected 0 lifetime arguments | |
124 | | | |
125 | note: struct defined here, with 0 lifetime parameters | |
126 | --> $DIR/E0107.rs:4:8 | |
127 | | | |
128 | LL | struct Quux<T>(T); | |
129 | | ^^^^ | |
130 | ||
131 | error: aborting due to 9 previous errors | |
2c00a5a8 | 132 | |
0531ce1d | 133 | For more information about this error, try `rustc --explain E0107`. |