]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-83466.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-83466.stderr
1 warning: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
2 --> $DIR/issue-83466.rs:11:14
3 |
4 LL | fn func<'a, U>(self) -> U {
5 | -- the late bound lifetime parameter is introduced here
6 ...
7 LL | 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
14 error[E0747]: constant provided when a type was expected
15 --> $DIR/issue-83466.rs:11:18
16 |
17 LL | S.func::<'a, 10_u32>()
18 | ^^^^^^
19
20 error: aborting due to previous error; 1 warning emitted
21
22 For more information about this error, try `rustc --explain E0747`.