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(