Add test for #68532

This commit is contained in:
Yuki Okushi 2020-05-25 22:29:25 +09:00
parent ca722b9358
commit 125f0abb42
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// check-pass
pub struct A<'a>(&'a ());
impl<'a> A<'a> {
const N: usize = 68;
pub fn foo(&self) {
let _b = [0; Self::N];
}
}
fn main() {}