Descriptive error when users try to combine RPITIT/AFIT with specialization
This commit is contained in:
parent
6290ae92b2
commit
ecac8fd5af
7 changed files with 83 additions and 65 deletions
|
@ -15,6 +15,7 @@ where
|
|||
{
|
||||
fn bar(&self) -> U {
|
||||
//~^ ERROR method `bar` has an incompatible type for trait
|
||||
//~| ERROR method with return-position `impl Trait` in trait cannot be specialized
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue