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