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 17:43:39 -05: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 17:43:39 -05:00
//~| ERROR `()` doesn't implement `std::fmt::Display`
}