summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs')
-rw-r--r--tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs
new file mode 100644
index 000000000..a93bdb178
--- /dev/null
+++ b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs
@@ -0,0 +1,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
+}