rust/tests/ui/argument-suggestions/issue-100154.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
215 B
Rust
Raw Normal View History

2022-08-04 22:43:39 +00:00
fn foo(i: impl std::fmt::Display) {}
fn main() {
foo::<()>(());
//~^ ERROR function takes 0 generic arguments but 1 generic argument was supplied
2022-08-04 22:43:39 +00:00
//~| ERROR `()` doesn't implement `std::fmt::Display`
}