1
Fork 0

Add regression test for issue 68477.

This commit is contained in:
Ben Lewis 2020-01-27 20:42:09 +13:00
parent ea18cd7c64
commit ebfa2f448e

View file

@ -0,0 +1,23 @@
// edition:2018
// revisions:rpass1
#![feature(const_generics)]
const FOO: usize = 1;
struct Container<T> {
val: std::marker::PhantomData<T>,
blah: [(); FOO]
}
async fn dummy() {}
async fn foo() {
let a: Container<&'static ()>;
dummy().await;
}
fn is_send<T: Send>(_: T) {}
fn main() {
is_send(foo());
}