rust/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
193 B
Rust
Raw Normal View History

2021-08-03 06:38:48 -05:00
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
2021-08-03 06:38:48 -05:00
}