]>
git.proxmox.com Git - rustc.git/blob - 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 }
4 impl<'a
> OnDiskDirEntry
<'a
> {
5 const LFN_FRAGMENT_LEN
: usize = 2;
7 fn lfn_contents(&self) -> [char; Self::LFN_FRAGMENT_LEN
] { loop { }
}
8 //~^ ERROR: generic `Self` types are currently not permitted in anonymous constants