Skip to content

Commit 0c92b83

Browse files
committed
Add check-pass test
1 parent b3e6f8d commit 0c92b83

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// edition:2018
2+
// check-pass
3+
4+
#![feature(generator_mir_traits)]
5+
6+
fn is_send<T: Send>(val: T) {}
7+
8+
async fn dummy() {}
9+
10+
async fn not_send() {
11+
let val: *const ();
12+
dummy().await;
13+
}
14+
15+
fn main() {
16+
is_send(not_send());
17+
}

0 commit comments

Comments
 (0)