From c7027122db14317c4c4d72469e13af0292f64254 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 28 Apr 2022 19:23:57 +0200 Subject: [PATCH] Add test with trait --- crates/ide_assists/src/handlers/inline_type_alias.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/ide_assists/src/handlers/inline_type_alias.rs b/crates/ide_assists/src/handlers/inline_type_alias.rs index 369f197456a..bc4a07358cc 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; +} "#, ); }