Skip to content

Commit 985e1e0

Browse files
Add a simpler test
1 parent 24c1f4a commit 985e1e0

3 files changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/unifying-placeholders-in-query-response-2.rs:5:12
3+
|
4+
LL | #![feature(non_lifetime_binders)]
5+
| ^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8+
= note: `#[warn(incomplete_features)]` on by default
9+
10+
warning: 1 warning emitted
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/unifying-placeholders-in-query-response-2.rs:5:12
3+
|
4+
LL | #![feature(non_lifetime_binders)]
5+
| ^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8+
= note: `#[warn(incomplete_features)]` on by default
9+
10+
warning: 1 warning emitted
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// revisions: current next
2+
//[next] compile-flags: -Znext-solver
3+
// check-pass
4+
5+
#![feature(non_lifetime_binders)]
6+
//~^ WARN the feature `non_lifetime_binders` is incomplete
7+
8+
trait Id {
9+
type Output: ?Sized;
10+
}
11+
12+
impl<T: ?Sized> Id for T {
13+
type Output = T;
14+
}
15+
16+
trait Everyone {}
17+
impl<T: ?Sized> Everyone for T {}
18+
19+
fn hello() where for<T> <T as Id>::Output: Everyone {}
20+
21+
fn main() {
22+
hello();
23+
}

0 commit comments

Comments
 (0)