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.

24 lines
400 B
Rust
Raw Normal View History

2024-01-13 23:08:22 +00:00
// revisions: current next
//[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();
}