fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.4 KiB31 linesraw
1error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
2  --> $DIR/method-call-lifetime-args-lint.rs:12:14
3   |
4LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
5   |             -- the late bound lifetime parameter is introduced here
6...
7LL |     S.late::<'static>(&0, &0);
8   |              ^^^^^^^
9   |
10note: lint level defined here
11  --> $DIR/method-call-lifetime-args-lint.rs:1:9
12   |
13LL | #![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
18error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
19  --> $DIR/method-call-lifetime-args-lint.rs:16:23
20   |
21LL |     fn late_implicit(self, _: &u8, _: &u8) {}
22   |                               - the late bound lifetime parameter is introduced here
23...
24LL |     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
30error: aborting due to 2 previous errors
31