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