forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#84653 - jackh726:erase-flags, r=nikomatsakis
Add HAS_RE_LATE_BOUND if there are bound vars Fixes rust-lang#83737 Fixes rust-lang#84604 I can rename `HAS_RE_LATE_BOUND`, to something like `HAS_LATE_BOUND_VARS`. r? ```@nikomatsakis```
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// build-pass | ||
// compile-flags: --edition 2018 | ||
// compile-flags: --crate-type rlib | ||
|
||
use std::future::Future; | ||
|
||
async fn handle<F>(slf: &F) | ||
where | ||
F: Fn(&()) -> Box<dyn for<'a> Future<Output = ()> + Unpin>, | ||
{ | ||
(slf)(&()).await; | ||
} | ||
|
||
fn main() {} |
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,9 @@ | ||
// run-pass | ||
// compile-flags: -Zsymbol-mangling-version=v0 | ||
|
||
pub fn f<T: ?Sized>() {} | ||
pub trait Frob<T: ?Sized> {} | ||
fn main() { | ||
f::<dyn Frob<str>>(); | ||
f::<dyn for<'a> Frob<str>>(); | ||
} |