diff --git a/crates/ide_assists/src/handlers/inline_type_alias.rs b/crates/ide_assists/src/handlers/inline_type_alias.rs index 369f197456..bc4a07358c 100644 --- a/crates/ide_assists/src/handlers/inline_type_alias.rs +++ b/crates/ide_assists/src/handlers/inline_type_alias.rs @@ -828,6 +828,15 @@ trait Tr<'b, T> {} impl Tr<'static, u8> for Strukt<'_, T, C> { fn new() -> Strukt<'_, T, C> {} } +"#, + ); + + check_assist_not_applicable( + inline_type_alias, + r#" +trait Tr { + fn new() -> Self$0; +} "#, ); }