]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-call-lifetime-args-lint.stderr
Merge commit '953f024793dab92745fee9cd2c4dee6a60451771' into clippyup
[rust.git] / src / test / ui / methods / method-call-lifetime-args-lint.stderr
1 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
2   --> $DIR/method-call-lifetime-args-lint.rs:12: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 note: the lint level is defined here
11   --> $DIR/method-call-lifetime-args-lint.rs:1:9
12    |
13 LL | #![deny(late_bound_lifetime_arguments)]
14    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
16    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
17
18 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
19   --> $DIR/method-call-lifetime-args-lint.rs:16:23
20    |
21 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
22    |                               - the late bound lifetime parameter is introduced here
23 ...
24 LL |     S.late_implicit::<'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: aborting due to 2 previous errors
31