rust/tests/ui/traits/non_lifetime_binders/unifying-placeholders-in-query-response-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
460 B
Rust
Raw Normal View History

2024-01-13 17:08:22 -06:00
//@ revisions: current next
//@ 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();
}