1 error[E0107]: this function takes 0 generic arguments but 1 generic argument was supplied
2 --> $DIR/issue-100154.rs:4:5
5 | ^^^------ help: remove these generics
7 | expected 0 generic arguments
9 note: function defined here, with 0 generic parameters
10 --> $DIR/issue-100154.rs:1:4
12 LL | fn foo(i: impl std::fmt::Display) {}
14 = note: `impl Trait` cannot be explicitly specified as a generic argument
16 error[E0277]: `()` doesn't implement `std::fmt::Display`
17 --> $DIR/issue-100154.rs:4:15
20 | --------- ^^ `()` cannot be formatted with the default formatter
22 | required by a bound introduced by this call
24 = help: the trait `std::fmt::Display` is not implemented for `()`
25 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
26 note: required by a bound in `foo`
27 --> $DIR/issue-100154.rs:1:16
29 LL | fn foo(i: impl std::fmt::Display) {}
30 | ^^^^^^^^^^^^^^^^^ required by this bound in `foo`
32 error: aborting due to 2 previous errors
34 Some errors have detailed explanations: E0107, E0277.
35 For more information about an error, try `rustc --explain E0107`.