mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
21 lines
318 B
Rust
21 lines
318 B
Rust
// compile-flags: -Ztrait-solver=next
|
|
|
|
trait Trait {}
|
|
|
|
struct W<T>(T);
|
|
|
|
impl<T, U> Trait for W<(W<T>, W<U>)>
|
|
where
|
|
W<T>: Trait,
|
|
W<U>: Trait,
|
|
{
|
|
}
|
|
|
|
fn impls<T: Trait>() {}
|
|
|
|
fn main() {
|
|
impls::<W<_>>();
|
|
//~^ ERROR type annotations needed
|
|
//~| ERROR overflow evaluating the requirement `W<_>: Trait`
|
|
}
|