]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-call-lifetime-args-lint-fail.stderr
Move /src/test to /tests
[rust.git] / tests / ui / methods / method-call-lifetime-args-lint-fail.stderr
1 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
2   --> $DIR/method-call-lifetime-args-lint-fail.rs:23:14
3    |
4 LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
5    |             -- the late bound lifetime parameter is introduced here
6 ...
7 LL |     S.late::<'static>(&0, &0);
8    |              ^^^^^^^
9    |
10    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
12 note: the lint level is defined here
13   --> $DIR/method-call-lifetime-args-lint-fail.rs:1:9
14    |
15 LL | #![deny(late_bound_lifetime_arguments)]
16    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
18 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
19   --> $DIR/method-call-lifetime-args-lint-fail.rs:26:14
20    |
21 LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
22    |             -- the late bound lifetime parameter is introduced here
23 ...
24 LL |     S.late::<'static, 'static>(&0, &0);
25    |              ^^^^^^^
26    |
27    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
28    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
29
30 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
31   --> $DIR/method-call-lifetime-args-lint-fail.rs:29:14
32    |
33 LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
34    |             -- the late bound lifetime parameter is introduced here
35 ...
36 LL |     S.late::<'static, 'static, 'static>(&0, &0);
37    |              ^^^^^^^
38    |
39    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
41
42 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
43   --> $DIR/method-call-lifetime-args-lint-fail.rs:33:20
44    |
45 LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
46    |                   -- the late bound lifetime parameter is introduced here
47 ...
48 LL |     S.late_early::<'static>(&0);
49    |                    ^^^^^^^
50    |
51    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
52    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
53
54 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
55   --> $DIR/method-call-lifetime-args-lint-fail.rs:36:20
56    |
57 LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
58    |                   -- the late bound lifetime parameter is introduced here
59 ...
60 LL |     S.late_early::<'static, 'static>(&0);
61    |                    ^^^^^^^
62    |
63    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
64    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
65
66 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
67   --> $DIR/method-call-lifetime-args-lint-fail.rs:39:20
68    |
69 LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
70    |                   -- the late bound lifetime parameter is introduced here
71 ...
72 LL |     S.late_early::<'static, 'static, 'static>(&0);
73    |                    ^^^^^^^
74    |
75    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
76    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
77
78 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
79   --> $DIR/method-call-lifetime-args-lint-fail.rs:44:23
80    |
81 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
82    |                               - the late bound lifetime parameter is introduced here
83 ...
84 LL |     S.late_implicit::<'static>(&0, &0);
85    |                       ^^^^^^^
86    |
87    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
88    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
89
90 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
91   --> $DIR/method-call-lifetime-args-lint-fail.rs:47:23
92    |
93 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
94    |                               - the late bound lifetime parameter is introduced here
95 ...
96 LL |     S.late_implicit::<'static, 'static>(&0, &0);
97    |                       ^^^^^^^
98    |
99    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
100    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
101
102 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
103   --> $DIR/method-call-lifetime-args-lint-fail.rs:50:23
104    |
105 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
106    |                               - the late bound lifetime parameter is introduced here
107 ...
108 LL |     S.late_implicit::<'static, 'static, 'static>(&0, &0);
109    |                       ^^^^^^^
110    |
111    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
112    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
113
114 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
115   --> $DIR/method-call-lifetime-args-lint-fail.rs:54:29
116    |
117 LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
118    |                                         - the late bound lifetime parameter is introduced here
119 ...
120 LL |     S.late_implicit_early::<'static>(&0);
121    |                             ^^^^^^^
122    |
123    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
124    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
125
126 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
127   --> $DIR/method-call-lifetime-args-lint-fail.rs:57:29
128    |
129 LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
130    |                                         - the late bound lifetime parameter is introduced here
131 ...
132 LL |     S.late_implicit_early::<'static, 'static>(&0);
133    |                             ^^^^^^^
134    |
135    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
136    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
137
138 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
139   --> $DIR/method-call-lifetime-args-lint-fail.rs:60:29
140    |
141 LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
142    |                                         - the late bound lifetime parameter is introduced here
143 ...
144 LL |     S.late_implicit_early::<'static, 'static, 'static>(&0);
145    |                             ^^^^^^^
146    |
147    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
148    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
149
150 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
151   --> $DIR/method-call-lifetime-args-lint-fail.rs:69:21
152    |
153 LL |     fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
154    |                   -- the late bound lifetime parameter is introduced here
155 ...
156 LL |     S::late_early::<'static>(S, &0);
157    |                     ^^^^^^^
158    |
159    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
160    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
161
162 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
163   --> $DIR/method-call-lifetime-args-lint-fail.rs:73:30
164    |
165 LL |     fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
166    |                                         - the late bound lifetime parameter is introduced here
167 ...
168 LL |     S::late_implicit_early::<'static>(S, &0);
169    |                              ^^^^^^^
170    |
171    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
172    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
173
174 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
175   --> $DIR/method-call-lifetime-args-lint-fail.rs:82:9
176    |
177 LL |     fn f<'early, 'late, T: 'early>() {}
178    |                  ----- the late bound lifetime parameter is introduced here
179 ...
180 LL |     f::<'static, u8>;
181    |         ^^^^^^^
182    |
183    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
184    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
185
186 error: aborting due to 15 previous errors
187