Skip to content

Commit

Permalink
Add test with trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Schievink committed Apr 28, 2022
1 parent b6a1b45 commit c702712
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/ide_assists/src/handlers/inline_type_alias.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
"#,
);
}
Expand Down

0 comments on commit c702712

Please sign in to comment.