Skip to content

manual, still a reference with ~ operator #16439

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

Closed
CedricLevasseur opened this issue Aug 12, 2014 · 1 comment · Fixed by #16444
Closed

manual, still a reference with ~ operator #16439

CedricLevasseur opened this issue Aug 12, 2014 · 1 comment · Fixed by #16444

Comments

@CedricLevasseur
Copy link

In the last lines of the chapter of traits, we can read this example :
let mycircle: Circle = ~mycircle as ~Circle;
let nonsense = mycircle.radius() * mycircle.area();

But i've understand that the ~ operator is obsolete.
Could you please correct it ? Thx

@steveklabnik
Copy link
Member

PR submitted.

steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 12, 2014
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this issue Feb 5, 2024
feat: Support for GOTO def from *inside* files included with include! macro

close rust-lang#14937
Try to implement goto def from *inside* files included with include! macro.
This implementation has two limitations:
1. Only **one** file which calls include! will be tracked. (I think multiple file be included is a rare case and we may let it go for now)
2. Mapping token from included file to macro call file (semantics.rs:646~658) works fine but I am not sure is this the correct way to implement.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants