add and move trait solver cycle tests
This commit is contained in:
parent
d558353f28
commit
02529d2cbe
21 changed files with 215 additions and 1 deletions
|
@ -0,0 +1,16 @@
|
|||
//~ ERROR overflow evaluating the requirement `<T as Foo>::Assoc` [E0275]
|
||||
// compile-flags: -Ztrait-solver=next
|
||||
|
||||
trait Foo {
|
||||
type Assoc;
|
||||
}
|
||||
|
||||
trait Bar {}
|
||||
fn needs_bar<S: Bar>() {}
|
||||
|
||||
fn test<T: Foo<Assoc = <T as Foo>::Assoc>>() {
|
||||
needs_bar::<T::Assoc>();
|
||||
//~^ ERROR overflow evaluating the requirement `<T as Foo>::Assoc: Bar`
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue