Provide extra note if synthetic type args are specified
This commit is contained in:
parent
d973b358c6
commit
674745836c
3 changed files with 81 additions and 51 deletions
|
|
@ -11,6 +11,7 @@ note: function defined here, with 1 generic parameter: `T`
|
|||
|
|
||||
LL | fn foo<T: ?Sized>(_f: impl AsRef<T>) {}
|
||||
| ^^^ -
|
||||
= note: `impl Trait` cannot be explicitly specified as a generic argument
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue