mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
Add regression test for issue 68477.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user