]> git.lizzy.rs Git - rust.git/blob - src/test/ui/synthetic-param.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / synthetic-param.stderr
1 error[E0632]: cannot provide explicit type parameters when `impl Trait` is used in argument position.
2   --> $DIR/synthetic-param.rs:30:5
3    |
4 LL |     func::<u8>(42); //~ ERROR cannot provide explicit type parameters
5    |     ^^^^^^^^^^
6
7 error[E0632]: cannot provide explicit type parameters when `impl Trait` is used in argument position.
8   --> $DIR/synthetic-param.rs:33:5
9    |
10 LL |     Foo::func::<u8>(42); //~ ERROR cannot provide explicit type parameters
11    |     ^^^^^^^^^^^^^^^
12
13 error[E0632]: cannot provide explicit type parameters when `impl Trait` is used in argument position.
14   --> $DIR/synthetic-param.rs:36:5
15    |
16 LL |     Bar::<i8>::func::<u8>(42); //~ ERROR cannot provide explicit type parameters
17    |     ^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0632`.