about summary refs log tree commit diff
path: root/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs
blob: ffb0582fe8df4113e23526686ace57ea95d39dc2 (plain)
1
2
3
4
5
6
7
8
#![feature(explicit_generic_args_with_impl_trait)]

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
}