From 125f0abb42159d3db9d86208e03006d068585bbf Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 25 May 2020 22:29:25 +0900 Subject: [PATCH] Add test for #68532 --- src/test/ui/impl-trait/issue-68532.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/ui/impl-trait/issue-68532.rs diff --git a/src/test/ui/impl-trait/issue-68532.rs b/src/test/ui/impl-trait/issue-68532.rs new file mode 100644 index 0000000000000..01a7af0aee40e --- /dev/null +++ b/src/test/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() {}