From f32ad8362f075a80d4c4861c5f6f601fd7484ff6 Mon Sep 17 00:00:00 2001 From: Jeremy Banks <_@jeremy.ca> Date: Wed, 15 Jun 2022 16:25:47 +0000 Subject: [PATCH] add failing test: inserts_after_shebang --- crates/ide-db/src/imports/insert_use/tests.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/ide-db/src/imports/insert_use/tests.rs b/crates/ide-db/src/imports/insert_use/tests.rs index 6569e4ed8c..70a7a15232 100644 --- a/crates/ide-db/src/imports/insert_use/tests.rs +++ b/crates/ide-db/src/imports/insert_use/tests.rs @@ -454,6 +454,17 @@ use foo::bar::Baz;"#, ); } +#[test] +fn inserts_after_shebang() { + check_none( + "foo::bar::Baz", + "#!/usr/bin/env rust", + r#"#!/usr/bin/env rust + +use foo::bar::Baz;"#, + ); +} + #[test] fn inserts_after_multiple_single_line_comments() { check_none(