]> git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/issues/issue-56445-2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / const-generics / issues / issue-56445-2.rs
1 // Regression test for https://github.com/rust-lang/rust/issues/56445#issuecomment-502095133
2 struct OnDiskDirEntry<'a> { _s: &'a usize }
3
4 impl<'a> OnDiskDirEntry<'a> {
5 const LFN_FRAGMENT_LEN: usize = 2;
6
7 fn lfn_contents(&self) -> [char; Self::LFN_FRAGMENT_LEN] { loop { } }
8 //~^ ERROR: generic `Self` types are currently not permitted in anonymous constants
9 }
10
11 fn main() {}