IndexMap doesn't implement `Debug`
Closed this issue · 4 comments
Ethan1225 commented
I have:
let mut test: IndexMap<&str, &str> = IndexMap::new();
test.insert("index1", "value1");
println!("{:?}", test);
test doesn't implement Debug
cuviper commented
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 commented
It can truly pass the compiler , but there is a warning prompt in the
jetbrains ide
Josh Stone ***@***.***>于2021年6月15日 周二23:29写道:
… 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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#191 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJYOKC4L4CS5YNCVDILOXLTS5WW5ANCNFSM46WYUPXA>
.
cuviper commented
If the IDE is inconsistent, you should ask JetBrains.
For instance, see also #148 and intellij-rust/intellij-rust#4631.