]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-83466.stderr
Rollup merge of #99358 - compiler-errors:issue-99325, r=oli-obk
[rust.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    = note: `#[warn(late_bound_lifetime_arguments)]` on by default
11    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
12    = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
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`.