Bless test
This commit is contained in:
parent
ae313da4ba
commit
e3389befe1
1 changed files with 3 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
|||
error[E0107]: this function takes at most 1 generic argument but 2 generic arguments were supplied
|
||||
error[E0107]: this function takes 1 generic argument but 2 generic arguments were supplied
|
||||
--> $DIR/explicit-generic-args-for-impl.rs:6:5
|
||||
|
|
||||
LL | foo::<str, String>("".to_string());
|
||||
| ^^^ ------ help: remove this generic argument
|
||||
| |
|
||||
| expected at most 1 generic argument
|
||||
| expected 1 generic argument
|
||||
|
|
||||
note: function defined here, with at most 1 generic parameter: `T`
|
||||
note: function defined here, with 1 generic parameter: `T`
|
||||
--> $DIR/explicit-generic-args-for-impl.rs:3:4
|
||||
|
|
||||
LL | fn foo<T: ?Sized>(_f: impl AsRef<T>) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue