mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 17:07:26 +00:00
Add test with trait
This commit is contained in:
parent
b6a1b45c24
commit
c7027122db
1 changed files with 9 additions and 0 deletions
|
@ -828,6 +828,15 @@ trait Tr<'b, T> {}
|
||||||
impl<T, const C: usize> Tr<'static, u8> for Strukt<'_, T, C> {
|
impl<T, const C: usize> Tr<'static, u8> for Strukt<'_, T, C> {
|
||||||
fn new() -> Strukt<'_, T, C> {}
|
fn new() -> Strukt<'_, T, C> {}
|
||||||
}
|
}
|
||||||
|
"#,
|
||||||
|
);
|
||||||
|
|
||||||
|
check_assist_not_applicable(
|
||||||
|
inline_type_alias,
|
||||||
|
r#"
|
||||||
|
trait Tr {
|
||||||
|
fn new() -> Self$0;
|
||||||
|
}
|
||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue