2020-03-13 09:04:14 +09:00
|
|
|
// Regression test for #67739
|
|
|
|
|
|
2020-03-14 15:30:35 +01:00
|
|
|
// check-pass
|
|
|
|
|
|
2020-03-13 09:04:14 +09:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
#![feature(const_generics)]
|
|
|
|
|
|
|
|
|
|
use std::mem;
|
|
|
|
|
|
|
|
|
|
pub trait Trait {
|
|
|
|
|
type Associated: Sized;
|
|
|
|
|
|
|
|
|
|
fn associated_size(&self) -> usize {
|
|
|
|
|
[0u8; mem::size_of::<Self::Associated>()];
|
|
|
|
|
0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|