Skip to content

Commit 125f0ab

Browse files
committed
Add test for #68532
1 parent ca722b9 commit 125f0ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/ui/impl-trait/issue-68532.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// check-pass
2+
3+
pub struct A<'a>(&'a ());
4+
5+
impl<'a> A<'a> {
6+
const N: usize = 68;
7+
8+
pub fn foo(&self) {
9+
let _b = [0; Self::N];
10+
}
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)