2020-08-09 01:19:57 -05:00
|
|
|
//@ revisions: full min
|
2021-08-27 11:04:57 -05:00
|
|
|
#![cfg_attr(full, feature(generic_const_exprs))]
|
2020-08-09 01:19:57 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-07-18 16:42:10 -05:00
|
|
|
|
|
|
|
struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
|
2021-04-18 09:43:43 -05:00
|
|
|
//[min]~^ ERROR generic parameters may not be used in const operations
|
2020-07-18 16:42:10 -05:00
|
|
|
|
|
|
|
struct Bar<T = [u8; N], const N: usize>(T);
|
2021-04-18 06:57:22 -05:00
|
|
|
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
|
2021-03-01 05:50:09 -06:00
|
|
|
//~| ERROR generic parameters with a default
|
2020-07-18 16:42:10 -05:00
|
|
|
|
|
|
|
fn main() {}
|