mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Fix assertion failure in type inference (#13352)
This commit is contained in:
parent
476d043874
commit
8862fe6ff2
2 changed files with 20 additions and 0 deletions
|
@ -1373,6 +1373,22 @@ fn main() {
|
|||
().func$0();
|
||||
//^^^^
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_assoc_type_highlighting() {
|
||||
check(
|
||||
r#"
|
||||
trait Trait {
|
||||
type Output;
|
||||
// ^^^^^^
|
||||
}
|
||||
impl Trait for () {
|
||||
type Output$0 = ();
|
||||
// ^^^^^^
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue