fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
890 B22 linesraw
1warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
2  --> $DIR/issue-83466.rs:11:14
3   |
4LL |     fn func<'a, U>(self) -> U {
5   |             -- the late bound lifetime parameter is introduced here
6...
7LL |     S.func::<'a, 10_u32>()
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: `#[warn(late_bound_lifetime_arguments)]` on by default
13
14error[E0747]: constant provided when a type was expected
15  --> $DIR/issue-83466.rs:11:18
16   |
17LL |     S.func::<'a, 10_u32>()
18   |                  ^^^^^^
19
20error: aborting due to previous error; 1 warning emitted
21
22For more information about this error, try `rustc --explain E0747`.