Skip to content

Commit 086ac56

Browse files
committed
Test with an import suggestion that has less ambiguity
Too many crates have a `HashMap` so the one from `std` no longer appears in the (alphabetic?) list suggested by the compiler.
1 parent be9c61c commit 086ac56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/spec/features/assistance_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636

3737
scenario "using a type that hasn't been imported offers importing it" do
3838
editor.set <<~EOF
39-
fn example(_: HashMap) {}
39+
fn example(_: NonZeroU128) {}
4040
EOF
4141
click_on("Build")
4242

4343
within(:output, :stderr) do
44-
click_on("use std::collections::HashMap;")
44+
click_on("use core::num::NonZeroU128;")
4545
end
4646

47-
expect(editor).to have_line 'use std::collections::HashMap;'
47+
expect(editor).to have_line 'use core::num::NonZeroU128;'
4848
end
4949

5050
scenario "triggering a panic offers enabling backtraces" do

0 commit comments

Comments
 (0)