-
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
Overloaded calls must now be written as (*self)()
instead of self()
#18742
Comments
japaric
pushed a commit
to japaric-archived/stats.rs
that referenced
this issue
Nov 7, 2014
Work around for rust-lang/rust#18742
Right. I guess we have to decide whether overloaded calls auto-deref. Presumably they should. |
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Jan 3, 2015
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Jan 3, 2015
GauravBholaris
pushed a commit
to GauravBholaris/criterion.rs
that referenced
this issue
Jul 20, 2022
Work around for rust-lang/rust#18742
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
STR
Version
I think all these cases should work since
self()
should be sugar forself.call(())
and that method call works on the three cases.Also, it seems the situation has regressed recently, because on the playpen
bar
is also working. The playpen is using this older version of the compiler:This is probably related to #18349
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: