Skip to content

Commit

Permalink
Add regression test for issue 68477.
Browse files Browse the repository at this point in the history
  • Loading branch information
skinnyBat committed Feb 20, 2020
1 parent ea18cd7 commit ebfa2f4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/test/incremental/const-generics/issue-68477.rs
Original file line number Diff line number Diff line change
@@ -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());
}

0 comments on commit ebfa2f4

Please sign in to comment.