]> git.proxmox.com Git - rustc.git/blob - tests/ui/methods/method-call-lifetime-args-lint.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 = 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.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.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