]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/impl-trait-with-const-arguments.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / const-generics / impl-trait-with-const-arguments.stderr
1 error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
2   --> $DIR/impl-trait-with-const-arguments.rs:18:20
3    |
4 LL |     assert_eq!(f::<4usize>(Usizable), 20usize);
5    |                    ^^^^^^ explicit generic argument not allowed
6    |
7    = note: see issue #83701 <https://github.com/rust-lang/rust/issues/83701> for more information
8    = help: add `#![feature(explicit_generic_args_with_impl_trait)]` to the crate attributes to enable
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0632`.