mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
8 lines
215 B
Rust
8 lines
215 B
Rust
fn foo(i: impl std::fmt::Display) {}
|
|
|
|
fn main() {
|
|
foo::<()>(());
|
|
//~^ ERROR function takes 0 generic arguments but 1 generic argument was supplied
|
|
//~| ERROR `()` doesn't implement `std::fmt::Display`
|
|
}
|