mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Add bounds for associated types in derive macro
This commit is contained in:
parent
972f1313eb
commit
c54cb88950
5 changed files with 187 additions and 30 deletions
|
@ -471,7 +471,7 @@ struct Foo {}
|
|||
"#,
|
||||
expect![[r#"
|
||||
Clone
|
||||
impl < >core::clone::Clone for Foo< >{}
|
||||
impl < >core::clone::Clone for Foo< >where{}
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
@ -488,7 +488,7 @@ struct Foo {}
|
|||
"#,
|
||||
expect![[r#"
|
||||
Copy
|
||||
impl < >core::marker::Copy for Foo< >{}
|
||||
impl < >core::marker::Copy for Foo< >where{}
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
@ -504,7 +504,7 @@ struct Foo {}
|
|||
"#,
|
||||
expect![[r#"
|
||||
Copy
|
||||
impl < >core::marker::Copy for Foo< >{}
|
||||
impl < >core::marker::Copy for Foo< >where{}
|
||||
"#]],
|
||||
);
|
||||
check(
|
||||
|
@ -516,7 +516,7 @@ struct Foo {}
|
|||
"#,
|
||||
expect![[r#"
|
||||
Clone
|
||||
impl < >core::clone::Clone for Foo< >{}
|
||||
impl < >core::clone::Clone for Foo< >where{}
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue