-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6d39a2
commit a99f36e
Showing
6 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![feature(non_lifetime_binders)] | ||
#![allow(incomplete_features)] | ||
|
||
trait Other<U: ?Sized> {} | ||
|
||
trait Trait<U> | ||
where | ||
for<T> U: Other<T> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
fn main() where for<'a, T: Sized + 'a, const C: usize> [&'a T; C]: Sized { | ||
let x = for<T> | ||
|| {}; | ||
|
||
let y: dyn | ||
for<T> Into<T>; | ||
|
||
let z: for<T> | ||
fn(T); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#![feature(non_lifetime_binders)] | ||
#![allow(incomplete_features)] | ||
|
||
trait Other<U: ?Sized> {} | ||
|
||
trait Trait<U> | ||
where | ||
for<T> U: Other<T>, | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
fn main() | ||
where | ||
for<'a, T: Sized + 'a, const C: usize> [&'a T; C]: Sized, | ||
{ | ||
let x = for<T> || {}; | ||
|
||
let y: dyn for<T> Into<T>; | ||
|
||
let z: for<T> fn(T); | ||
} |