Add test for #68532
This commit is contained in:
parent
ca722b9358
commit
125f0abb42
1 changed files with 13 additions and 0 deletions
13
src/test/ui/impl-trait/issue-68532.rs
Normal file
13
src/test/ui/impl-trait/issue-68532.rs
Normal 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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue