summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs
blob: 7249a36f5fe7b7b4de607b3d118cc0d52c849469 (plain)
1
2
3
4
5
6
fn f<T: ?Sized, U: ?Sized>(_: impl AsRef<T>, _: impl AsRef<U>) {}

fn main() {
    f::<[u8]>("a", b"a");
    //~^ ERROR: this function takes 2 generic arguments but 1 generic argument was supplied
}