diff options
| author | Jack Huey <jack.huey@umassmed.edu> | 2021-04-05 00:10:09 -0400 |
|---|---|---|
| committer | Jack Huey <jack.huey@umassmed.edu> | 2021-04-05 00:41:08 -0400 |
| commit | 1a14315975224951bc993455783678154afade09 (patch) | |
| tree | 70638637ee9b50af2be6db8e6c2939fde6612191 /src | |
| parent | 4fdac23f3171e2f8864d359a21da600dd3faafc9 (diff) | |
Don't concatenate binders across types
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/lifetimes/issue-83737-binders-across-types.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/lifetimes/issue-83737-binders-across-types.rs b/src/test/ui/lifetimes/issue-83737-binders-across-types.rs new file mode 100644 index 00000000000..e130561e466 --- /dev/null +++ b/src/test/ui/lifetimes/issue-83737-binders-across-types.rs @@ -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 Future<Output = ()> + Unpin>, +{ + (slf)(&()).await; +} + +fn main() {} |
