Skip to content

Commit c702712

Browse files
author
Jonas Schievink
committed
Add test with trait
1 parent b6a1b45 commit c702712

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/ide_assists/src/handlers/inline_type_alias.rs

+9
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,15 @@ trait Tr<'b, T> {}
828828
impl<T, const C: usize> Tr<'static, u8> for Strukt<'_, T, C> {
829829
fn new() -> Strukt<'_, T, C> {}
830830
}
831+
"#,
832+
);
833+
834+
check_assist_not_applicable(
835+
inline_type_alias,
836+
r#"
837+
trait Tr {
838+
fn new() -> Self$0;
839+
}
831840
"#,
832841
);
833842
}

0 commit comments

Comments
 (0)