2024-01-13 17:08:22 -06:00
|
|
|
//@ revisions: current next
|
2024-03-10 20:18:41 -05:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2024-01-13 17:08:22 -06:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
#![feature(non_lifetime_binders)]
|
|
|
|
//~^ WARN the feature `non_lifetime_binders` is incomplete
|
|
|
|
|
|
|
|
trait Id {
|
|
|
|
type Output: ?Sized;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T: ?Sized> Id for T {
|
|
|
|
type Output = T;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Everyone {}
|
|
|
|
impl<T: ?Sized> Everyone for T {}
|
|
|
|
|
|
|
|
fn hello() where for<T> <T as Id>::Output: Everyone {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
hello();
|
|
|
|
}
|