]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
17df50a5
XL
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 |
17df50a5
XL
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>
2b03887a 12 = note: `#[warn(late_bound_lifetime_arguments)]` on by default
17df50a5
XL
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`.