summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs
blob: a93bdb1788f94af05e203fd97dd805e8729defcc (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 function takes 2 generic arguments but 1 generic argument was supplied
}