blob: fb25f7a42390043232bae4c3c61599088c43cb44 [file] [log] [blame]
//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@[next] check-pass
//@ ignore-compare-mode-next-solver (explicit revisions)
#![feature(unsize)]
use std::marker::Unsize;
trait Trait {}
impl Trait for () {}
fn foo()
where
for<'a> (): Unsize<dyn Trait + 'a>,
{
}
fn main() {
foo();
//[current]~^ ERROR the trait bound `for<'a> (): Unsize<(dyn Trait + 'a)>` is not satisfied
}