Skip to content
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

Add support for references to unnamed data #119

Open
willcrichton opened this issue Sep 28, 2023 · 0 comments
Open

Add support for references to unnamed data #119

willcrichton opened this issue Sep 28, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers interpreter

Comments

@willcrichton
Copy link
Collaborator

Example:

fn foo(s: &str) {
  println!("{s}");
}

fn main() {
  foo(&String::from("Hello world"));
}

Currently this fails because the anonymous string is never discovered as a named local.

@willcrichton willcrichton added enhancement New feature or request good first issue Good for newcomers interpreter labels Sep 28, 2023
@willcrichton willcrichton changed the title Add support for referenced to unnamed data Add support for references to unnamed data Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers interpreter
Projects
None yet
Development

No branches or pull requests

1 participant