-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Able to use the turbofish syntax with impl trait for methods #50950
Comments
Note that the struct X;
impl X {
fn g(&self, _: impl Send) {}
}
fn main() {
X.g::<u64>(0);
} Edit: Calling with fully-qualified syntax |
This is great. |
Yeah, this is a plus, actually. |
Hmm, is this one of the things that would be covered by rust-lang/rfcs#2405? |
certainly =) |
prohibit turbofish in `impl Trait` methods Fix #50950
In some cases it seems like you are able to use the turbofish syntax with impl Trait
playground: http://play.rust-lang.org/?gist=62b8c9d317dd6f149354555ca42d45b3&version=stable&mode=debug
This should fail with
error[E0632]: cannot provide explicit type parameters when `impl Trait` is used in argument position.
The text was updated successfully, but these errors were encountered: