rust/src/test/incremental/const-generics/issue-68477.rs

24 lines
330 B
Rust
Raw Normal View History

2020-01-27 01:42:09 -06:00
// 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());
}