diff options
| author | varkor <github@varkor.com> | 2019-07-30 00:11:58 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-08-02 02:44:35 +0100 |
| commit | fc48541ab19cdd68a2b0228004e64d3cbb7a1ecb (patch) | |
| tree | ff9235de7c50ac6795502f5079d1523cde9161cf /src/test/ui/async-await/issues | |
| parent | 87738fe83401ee2a7d2556df8db0df4dec7cd58d (diff) | |
| download | rust-fc48541ab19cdd68a2b0228004e64d3cbb7a1ecb.tar.gz rust-fc48541ab19cdd68a2b0228004e64d3cbb7a1ecb.zip | |
Update syntax in existing tests
Diffstat (limited to 'src/test/ui/async-await/issues')
| -rw-r--r-- | src/test/ui/async-await/issues/issue-60655-latebound-regions.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/async-await/issues/issue-60655-latebound-regions.rs b/src/test/ui/async-await/issues/issue-60655-latebound-regions.rs index 2328ceb144f..f11aff971bf 100644 --- a/src/test/ui/async-await/issues/issue-60655-latebound-regions.rs +++ b/src/test/ui/async-await/issues/issue-60655-latebound-regions.rs @@ -3,11 +3,12 @@ // build-pass (FIXME(62277): could be check-pass?) // edition:2018 -#![feature(async_await, existential_type)] +#![feature(async_await)] +#![feature(type_alias_impl_trait)] use std::future::Future; -pub existential type Func: Sized; +pub type Func = impl Sized; // Late bound region should be allowed to escape the function, since it's bound // in the type. @@ -17,7 +18,7 @@ fn null_function_ptr() -> Func { async fn async_nop(_: &u8) {} -pub existential type ServeFut: Future<Output=()>; +pub type ServeFut = impl Future<Output=()>; // Late bound regions occur in the generator witness type here. fn serve() -> ServeFut { |
