]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0107.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0107.stderr
1 error[E0107]: this struct takes 2 lifetime arguments but 1 lifetime argument was supplied
2   --> $DIR/E0107.rs:13:11
3    |
4 LL |     buzz: Buzz<'a>,
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    |
16 LL |     buzz: Buzz<'a, 'a>,
17    |                  ++++
18
19 error[E0107]: this enum takes 0 lifetime arguments but 1 lifetime argument was supplied
20   --> $DIR/E0107.rs:17:10
21    |
22 LL |     bar: Bar<'a>,
23    |          ^^^---- help: remove these generics
24    |          |
25    |          expected 0 lifetime arguments
26    |
27 note: enum defined here, with 0 lifetime parameters
28   --> $DIR/E0107.rs:6:6
29    |
30 LL | enum Bar {
31    |      ^^^
32
33 error[E0107]: this struct takes 1 lifetime argument but 3 lifetime arguments were supplied
34   --> $DIR/E0107.rs:21:11
35    |
36 LL |     foo2: Foo<'a, 'b, 'c>,
37    |           ^^^     ------ help: remove these lifetime arguments
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    |        ^^^ --
46
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
132
133 For more information about this error, try `rustc --explain E0107`.