Skip to content

Commit

Permalink
Add test for rust-lang#68532
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed May 26, 2020
1 parent ca722b9 commit 125f0ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/ui/impl-trait/issue-68532.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 125f0ab

Please sign in to comment.