]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / explicit-generic-args-with-impl-trait / not-enough-args.stderr
CommitLineData
94222f64 1error[E0107]: this function takes 2 generic arguments but 1 generic argument was supplied
923072b8 2 --> $DIR/not-enough-args.rs:4:5
94222f64
XL
3 |
4LL | f::<[u8]>("a", b"a");
5 | ^ ---- supplied 1 generic argument
6 | |
7 | expected 2 generic arguments
8 |
9note: function defined here, with 2 generic parameters: `T`, `U`
923072b8 10 --> $DIR/not-enough-args.rs:1:4
94222f64
XL
11 |
12LL | fn f<T: ?Sized, U: ?Sized>(_: impl AsRef<T>, _: impl AsRef<U>) {}
13 | ^ - -
14help: add missing generic argument
15 |
16LL | f::<[u8], U>("a", b"a");
17 | +++
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0107`.