]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/issue-100154.rs
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / ui / argument-suggestions / issue-100154.rs
1 fn foo(i: impl std::fmt::Display) {}
2
3 fn main() {
4     foo::<()>(());
5     //~^ ERROR this function takes 0 generic arguments but 1 generic argument was supplied
6     //~| ERROR `()` doesn't implement `std::fmt::Display`
7 }