diff options
Diffstat (limited to 'tests/ui/impl-trait/issue-68532.rs')
-rw-r--r-- | tests/ui/impl-trait/issue-68532.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/issue-68532.rs b/tests/ui/impl-trait/issue-68532.rs new file mode 100644 index 000000000..01a7af0ae --- /dev/null +++ b/tests/ui/impl-trait/issue-68532.rs @@ -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() {} |