We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This compiles:
fn not<T>(_x: T) { } fn main() { not(|| { error!("Hello world"); }) }
This does not (or should I say, it does not do not):
fn not<T>(_x: T) { } fn main() { do not { error!("Hello world"); } }
I am not sure it ever makes sense to have to do this instantiation except in this particular corner case, so feel free to wontfix this.
The text was updated successfully, but these errors were encountered:
I don't think this is a backwards compatibility issue. Renominating.
Sorry, something went wrong.
closing WONTFIX, do notation doesn't need to work here
but wouldn't it be nice (more consistent) if it could?
It is conceivable that this could be more than the trivial program I posted above:
trait Hello { fn hello(self); } impl Hello for &fn() { fn hello(self) { self(); } } fn hello<T: Hello>(x: T) { x.hello(); } fn main() { do hello { error!("Hello world"); } }
I'd say far-future milestone.
Auto merge of rust-lang#3203 - RalfJung:trophy, r=RalfJung
2a316c4
new trophy case entry Cc rust-lang#118460
No branches or pull requests
This compiles:
This does not (or should I say, it does not do not):
I am not sure it ever makes sense to have to do this instantiation except in this particular corner case, so feel free to wontfix this.
The text was updated successfully, but these errors were encountered: