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

IndexMap doesn't implement Debug #191

Closed
Ethan1225 opened this issue Jun 15, 2021 · 4 comments
Closed

IndexMap doesn't implement Debug #191

Ethan1225 opened this issue Jun 15, 2021 · 4 comments

Comments

@Ethan1225
Copy link

I have:

let mut test: IndexMap<&str, &str> = IndexMap::new();
test.insert("index1", "value1");
println!("{:?}", test);

test doesn't implement Debug

@cuviper
Copy link
Member

cuviper commented Jun 15, 2021

There must be more to your problem, because this works fine in the playground:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6bcc805aa3a14b8bb6a2b689288bd829

@Ethan1225
Copy link
Author

Ethan1225 commented Jun 15, 2021 via email

@cuviper
Copy link
Member

cuviper commented Jun 15, 2021

If the IDE is inconsistent, you should ask JetBrains.

For instance, see also #148 and intellij-rust/intellij-rust#4631.

@bluss
Copy link
Member

bluss commented Jun 19, 2021

Duplicates #148

@bluss bluss closed this as completed Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants