mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 08:23:26 +00:00
Bless test
This commit is contained in:
parent
ae313da4ba
commit
e3389befe1
@ -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…
Reference in New Issue
Block a user