]> git.proxmox.com Git - rustc.git/blob - src/test/incremental/const-generics/issue-68477.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / incremental / const-generics / issue-68477.rs
1 // edition:2018
2 // revisions:rpass1
3 #![feature(const_generics)]
4
5 const FOO: usize = 1;
6
7 struct Container<T> {
8 val: std::marker::PhantomData<T>,
9 blah: [(); FOO]
10 }
11
12 async fn dummy() {}
13
14 async fn foo() {
15 let a: Container<&'static ()>;
16 dummy().await;
17 }
18
19 fn is_send<T: Send>(_: T) {}
20
21 fn main() {
22 is_send(foo());
23 }