Skip to content

Commit 2057136

Browse files
committed
update the async-fn-multiple-lifetimes test
1 parent b5fb906 commit 2057136

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
// edition:2018
2+
// run-pass
23

3-
#![feature(arbitrary_self_types, async_await, await_macro, pin)]
4+
// Test that we can use async fns with multiple arbitrary lifetimes.
5+
6+
#![feature(arbitrary_self_types, async_await, await_macro)]
47

58
use std::ops::Add;
69

710
async fn multiple_named_lifetimes<'a, 'b>(_: &'a u8, _: &'b u8) {}
8-
//~^ ERROR ambiguous lifetime bound in `async fn`
911

1012
async fn multiple_hrtb_and_single_named_lifetime_ok<'c>(
1113
_: impl for<'a> Add<&'a u8>,
@@ -14,6 +16,5 @@ async fn multiple_hrtb_and_single_named_lifetime_ok<'c>(
1416
) {}
1517

1618
async fn multiple_elided_lifetimes(_: &u8, _: &u8) {}
17-
//~^ ambiguous lifetime bound in `async fn`
1819

1920
fn main() {}

src/test/ui/async-await/async-fn-multiple-lifetimes.stderr

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)