Skip to content

Commit ebfa2f4

Browse files
committed
Add regression test for issue 68477.
1 parent ea18cd7 commit ebfa2f4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// edition:2018
2+
// revisions:rpass1
3+
#![feature(const_generics)]
4+
5+
const FOO: usize = 1;
6+
7+
struct Container<T> {
8+
val: std::marker::PhantomData<T>,
9+
blah: [(); FOO]
10+
}
11+
12+
async fn dummy() {}
13+
14+
async fn foo() {
15+
let a: Container<&'static ()>;
16+
dummy().await;
17+
}
18+
19+
fn is_send<T: Send>(_: T) {}
20+
21+
fn main() {
22+
is_send(foo());
23+
}

0 commit comments

Comments
 (0)