]> git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / const-generics / params-in-ct-in-ty-param-lazy-norm.rs
1 // revisions: full min
2 #![cfg_attr(full, feature(generic_const_exprs))]
3 #![cfg_attr(full, allow(incomplete_features))]
4
5 struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
6 //[min]~^ ERROR generic parameters may not be used in const operations
7
8 struct Bar<T = [u8; N], const N: usize>(T);
9 //~^ ERROR generic parameters with a default cannot use forward declared identifiers
10 //~| ERROR generic parameters with a default
11
12 fn main() {}