]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-67945-3.rs
3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(full, feature(const_generics))]
6 struct Bug
<S
: ?Sized
> {
8 //[full]~^ ERROR constant expression depends on a generic parameter
9 let x
: Option
<Box
<Self>> = None
;
10 //[min]~^ ERROR generic `Self` types are currently not permitted in anonymous constants