-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Improve error message for APIT with explicit generic arguments #65614
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Some changes occurred in diagnostic error codes |
(rust_highfive has picked a reviewer for you, use r? to override) |
8016331
to
547259f
Compare
--> $DIR/synthetic-param.rs:23:5 | ||
| | ||
LL | Foo::func::<u8>(42); | ||
| ^^^^^^^^^^^^^^^ | ||
|
||
error[E0632]: cannot provide explicit type parameters when `impl Trait` is used in argument position. | ||
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position | ||
--> $DIR/synthetic-param.rs:26:5 | ||
| | ||
LL | Bar::<i8>::func::<u8>(42); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This span is not very good. I'll file a follow up issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #65642.
This is disallowed with type or const generics.
547259f
to
2f7c9a2
Compare
@bors r+ |
📌 Commit 2f7c9a2 has been approved by |
…tthewjasper Improve error message for APIT with explicit generic arguments This is disallowed with type or const generics. cc rust-lang#61410.
Rollup of 8 pull requests Successful merges: - #65314 (rustdoc: forward -Z options to rustc) - #65592 (clarify const_prop ICE protection comment) - #65603 (Avoid ICE when include! is used by stdin crate) - #65614 (Improve error message for APIT with explicit generic arguments) - #65629 (Remove `borrowck_graphviz_postflow` from test) - #65633 (Remove leading :: from paths in doc examples) - #65638 (Rename the default argument 'def' to 'default') - #65639 (Fix parameter name in documentation) Failed merges: r? @ghost
This is disallowed with type or const generics. cc #61410.