blob: 4446b4bc2fcf341435ba0e13e78f0beea0a4c3e4 (
plain)
1
2
3
4
5
6
7
|
fn foo(i: impl std::fmt::Display) {}
fn main() {
foo::<()>(());
//~^ ERROR this function takes 0 generic arguments but 1 generic argument was supplied
//~| ERROR `()` doesn't implement `std::fmt::Display`
}
|