fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0107]: function takes 1 generic argument but 2 generic arguments were supplied 2 --> $DIR/explicit-generic-args-for-impl.rs:4:5 3 | 4LL | foo::<str, String>("".to_string()); 5 | ^^^ ------ help: remove this generic argument 6 | | 7 | expected 1 generic argument 8 | 9note: function defined here, with 1 generic parameter: `T` 10 --> $DIR/explicit-generic-args-for-impl.rs:1:4 11 | 12LL | fn foo<T: ?Sized>(_f: impl AsRef<T>) {} 13 | ^^^ - 14 = note: `impl Trait` cannot be explicitly specified as a generic argument 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0107`.