]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs
Be more careful about unresolved exprs in suggestion
[rust.git] / src / test / ui / impl-trait / explicit-generic-args-with-impl-trait / not-enough-args.rs
1 fn f<T: ?Sized, U: ?Sized>(_: impl AsRef<T>, _: impl AsRef<U>) {}
2
3 fn main() {
4     f::<[u8]>("a", b"a");
5     //~^ ERROR: this function takes 2 generic arguments but 1 generic argument was supplied
6 }