Add test with trait

This commit is contained in:
Jonas Schievink 2022-04-28 19:23:57 +02:00
parent b6a1b45c24
commit c7027122db

View file

@ -828,6 +828,15 @@ trait Tr<'b, T> {}
impl<T, const C: usize> 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;
}
"#,
);
}