]> git.lizzy.rs Git - rust.git/blob - src/test/ui/method-call-lifetime-args-lint.stderr
Auto merge of #45013 - chrisvittal:mir_pretty_printing_pr, r=nikomatsakis
[rust.git] / src / test / ui / 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:22:14
3    |
4 17 |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
5    |             -- the late bound lifetime parameter is introduced here
6 ...
7 22 |     S.late::<'static>(&0, &0);
8    |              ^^^^^^^
9    |
10 note: lint level defined here
11   --> $DIR/method-call-lifetime-args-lint.rs:11:9
12    |
13 11 | #![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:26:23
20    |
21 18 |     fn late_implicit(self, _: &u8, _: &u8) {}
22    |                               - the late bound lifetime parameter is introduced here
23 ...
24 26 |     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