]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/edition-lint-infer-outlives.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / rust-2018 / edition-lint-infer-outlives.stderr
1 error: outlives requirements can be inferred
2   --> $DIR/edition-lint-infer-outlives.rs:25:27
3    |
4 LL | struct TeeOutlivesAy<'a, T: 'a> {
5    |                           ^^^^ help: remove this bound
6    |
7 note: lint level defined here
8   --> $DIR/edition-lint-infer-outlives.rs:4:9
9    |
10 LL | #![deny(explicit_outlives_requirements)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: outlives requirements can be inferred
14   --> $DIR/edition-lint-infer-outlives.rs:30:36
15    |
16 LL | struct TeeOutlivesAyIsDebug<'a, T: 'a + Debug> {
17    |                                    ^^^^^ help: remove this bound
18
19 error: outlives requirements can be inferred
20   --> $DIR/edition-lint-infer-outlives.rs:35:41
21    |
22 LL | struct TeeIsDebugOutlivesAy<'a, T: Debug + 'a> {
23    |                                         ^^^^^ help: remove this bound
24
25 error: outlives requirements can be inferred
26   --> $DIR/edition-lint-infer-outlives.rs:40:34
27    |
28 LL | struct TeeOutlivesAyBee<'a, 'b, T: 'a + 'b> {
29    |                                  ^^^^^^^^^ help: remove these bounds
30
31 error: outlives requirements can be inferred
32   --> $DIR/edition-lint-infer-outlives.rs:45:43
33    |
34 LL | struct TeeOutlivesAyBeeIsDebug<'a, 'b, T: 'a + 'b + Debug> {
35    |                                           ^^^^^^^^^^ help: remove these bounds
36
37 error: outlives requirements can be inferred
38   --> $DIR/edition-lint-infer-outlives.rs:50:48
39    |
40 LL | struct TeeIsDebugOutlivesAyBee<'a, 'b, T: Debug + 'a + 'b> {
41    |                                                ^^^^^^^^^^ help: remove these bounds
42
43 error: outlives requirements can be inferred
44   --> $DIR/edition-lint-infer-outlives.rs:55:33
45    |
46 LL | struct TeeWhereOutlivesAy<'a, T> where T: 'a {
47    |                                 ^^^^^^^^^^^^ help: remove this bound
48
49 error: outlives requirements can be inferred
50   --> $DIR/edition-lint-infer-outlives.rs:60:50
51    |
52 LL | struct TeeWhereOutlivesAyIsDebug<'a, T> where T: 'a + Debug {
53    |                                                  ^^^^^ help: remove this bound
54
55 error: outlives requirements can be inferred
56   --> $DIR/edition-lint-infer-outlives.rs:65:55
57    |
58 LL | struct TeeWhereIsDebugOutlivesAy<'a, T> where T: Debug + 'a {
59    |                                                       ^^^^^ help: remove this bound
60
61 error: outlives requirements can be inferred
62   --> $DIR/edition-lint-infer-outlives.rs:70:40
63    |
64 LL | struct TeeWhereOutlivesAyBee<'a, 'b, T> where T: 'a + 'b {
65    |                                        ^^^^^^^^^^^^^^^^^ help: remove these bounds
66
67 error: outlives requirements can be inferred
68   --> $DIR/edition-lint-infer-outlives.rs:75:57
69    |
70 LL | struct TeeWhereOutlivesAyBeeIsDebug<'a, 'b, T> where T: 'a + 'b + Debug {
71    |                                                         ^^^^^^^^^^ help: remove these bounds
72
73 error: outlives requirements can be inferred
74   --> $DIR/edition-lint-infer-outlives.rs:80:62
75    |
76 LL | struct TeeWhereIsDebugOutlivesAyBee<'a, 'b, T> where T: Debug + 'a + 'b {
77    |                                                              ^^^^^^^^^^ help: remove these bounds
78
79 error: outlives requirements can be inferred
80   --> $DIR/edition-lint-infer-outlives.rs:85:33
81    |
82 LL | struct TeeYooOutlivesAy<'a, T, U: 'a> {
83    |                                 ^^^^ help: remove this bound
84
85 error: outlives requirements can be inferred
86   --> $DIR/edition-lint-infer-outlives.rs:91:42
87    |
88 LL | struct TeeYooOutlivesAyIsDebug<'a, T, U: 'a + Debug> {
89    |                                          ^^^^^ help: remove this bound
90
91 error: outlives requirements can be inferred
92   --> $DIR/edition-lint-infer-outlives.rs:97:47
93    |
94 LL | struct TeeYooIsDebugOutlivesAy<'a, T, U: Debug + 'a> {
95    |                                               ^^^^^ help: remove this bound
96
97 error: outlives requirements can be inferred
98   --> $DIR/edition-lint-infer-outlives.rs:103:37
99    |
100 LL | struct TeeOutlivesAyYooIsDebug<'a, T: 'a, U: Debug> {
101    |                                     ^^^^ help: remove this bound
102
103 error: outlives requirements can be inferred
104   --> $DIR/edition-lint-infer-outlives.rs:109:40
105    |
106 LL | struct TeeYooOutlivesAyBee<'a, 'b, T, U: 'a + 'b> {
107    |                                        ^^^^^^^^^ help: remove these bounds
108
109 error: outlives requirements can be inferred
110   --> $DIR/edition-lint-infer-outlives.rs:115:49
111    |
112 LL | struct TeeYooOutlivesAyBeeIsDebug<'a, 'b, T, U: 'a + 'b + Debug> {
113    |                                                 ^^^^^^^^^^ help: remove these bounds
114
115 error: outlives requirements can be inferred
116   --> $DIR/edition-lint-infer-outlives.rs:121:54
117    |
118 LL | struct TeeYooIsDebugOutlivesAyBee<'a, 'b, T, U: Debug + 'a + 'b> {
119    |                                                      ^^^^^^^^^^ help: remove these bounds
120
121 error: outlives requirements can be inferred
122   --> $DIR/edition-lint-infer-outlives.rs:127:44
123    |
124 LL | struct TeeOutlivesAyBeeYooIsDebug<'a, 'b, T: 'a + 'b, U: Debug> {
125    |                                            ^^^^^^^^^ help: remove these bounds
126
127 error: outlives requirements can be inferred
128   --> $DIR/edition-lint-infer-outlives.rs:133:39
129    |
130 LL | struct TeeYooWhereOutlivesAy<'a, T, U> where U: 'a {
131    |                                       ^^^^^^^^^^^^ help: remove this bound
132
133 error: outlives requirements can be inferred
134   --> $DIR/edition-lint-infer-outlives.rs:139:56
135    |
136 LL | struct TeeYooWhereOutlivesAyIsDebug<'a, T, U> where U: 'a + Debug {
137    |                                                        ^^^^^ help: remove this bound
138
139 error: outlives requirements can be inferred
140   --> $DIR/edition-lint-infer-outlives.rs:145:61
141    |
142 LL | struct TeeYooWhereIsDebugOutlivesAy<'a, T, U> where U: Debug + 'a {
143    |                                                             ^^^^^ help: remove this bound
144
145 error: outlives requirements can be inferred
146   --> $DIR/edition-lint-infer-outlives.rs:151:42
147    |
148 LL | struct TeeOutlivesAyYooWhereIsDebug<'a, T: 'a, U> where U: Debug {
149    |                                          ^^^^ help: remove this bound
150
151 error: outlives requirements can be inferred
152   --> $DIR/edition-lint-infer-outlives.rs:157:46
153    |
154 LL | struct TeeYooWhereOutlivesAyBee<'a, 'b, T, U> where U: 'a + 'b {
155    |                                              ^^^^^^^^^^^^^^^^^ help: remove these bounds
156
157 error: outlives requirements can be inferred
158   --> $DIR/edition-lint-infer-outlives.rs:163:63
159    |
160 LL | struct TeeYooWhereOutlivesAyBeeIsDebug<'a, 'b, T, U> where U: 'a + 'b + Debug {
161    |                                                               ^^^^^^^^^^ help: remove these bounds
162
163 error: outlives requirements can be inferred
164   --> $DIR/edition-lint-infer-outlives.rs:169:68
165    |
166 LL | struct TeeYooWhereIsDebugOutlivesAyBee<'a, 'b, T, U> where U: Debug + 'a + 'b {
167    |                                                                    ^^^^^^^^^^ help: remove these bounds
168
169 error: outlives requirements can be inferred
170   --> $DIR/edition-lint-infer-outlives.rs:175:49
171    |
172 LL | struct TeeOutlivesAyBeeYooWhereIsDebug<'a, 'b, T: 'a + 'b, U> where U: Debug {
173    |                                                 ^^^^^^^^^ help: remove these bounds
174
175 error: outlives requirements can be inferred
176   --> $DIR/edition-lint-infer-outlives.rs:181:58
177    |
178 LL | struct TeeWhereOutlivesAyYooWhereIsDebug<'a, T, U> where T: 'a, U: Debug {
179    |                                                          ^^^^^^^ help: remove this bound
180
181 error: outlives requirements can be inferred
182   --> $DIR/edition-lint-infer-outlives.rs:187:65
183    |
184 LL | struct TeeWhereOutlivesAyBeeYooWhereIsDebug<'a, 'b, T, U> where T: 'a + 'b, U: Debug {
185    |                                                                 ^^^^^^^^^^^^ help: remove these bounds
186
187 error: aborting due to 30 previous errors
188