2020-09-09 06:28:41 -05:00
|
|
|
// revisions: full min
|
|
|
|
#![cfg_attr(full, feature(const_generics))]
|
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-03-12 19:04:14 -05:00
|
|
|
|
|
|
|
use std::mem;
|
|
|
|
|
|
|
|
pub trait Trait {
|
|
|
|
type Associated: Sized;
|
|
|
|
|
|
|
|
fn associated_size(&self) -> usize {
|
|
|
|
[0u8; mem::size_of::<Self::Associated>()];
|
2020-10-22 03:32:41 -05:00
|
|
|
//~^ ERROR constant expression depends on a generic parameter
|
2020-03-12 19:04:14 -05:00
|
|
|
0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|