blob: fb25f7a42390043232bae4c3c61599088c43cb44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//@ 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
}
|