Provide extra note if synthetic type args are specified

This commit is contained in:
Gary Guo 2022-02-14 03:27:33 +00:00
parent d973b358c6
commit 674745836c
3 changed files with 81 additions and 51 deletions

View file

@ -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