Add regression test for issue 68477.
This commit is contained in:
parent
ea18cd7c64
commit
ebfa2f448e
1 changed files with 23 additions and 0 deletions
23
src/test/incremental/const-generics/issue-68477.rs
Normal file
23
src/test/incremental/const-generics/issue-68477.rs
Normal 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());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue