2022-07-15 00:37:32 -05:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
2022-08-28 01:27:31 -05:00
|
|
|
#[const_trait]
|
2022-07-15 00:37:32 -05:00
|
|
|
trait Trait {
|
|
|
|
const N: usize;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl const Trait for i32 {}
|
|
|
|
//~^ ERROR not all trait items implemented, missing: `N`
|
|
|
|
|
|
|
|
fn f()
|
|
|
|
where
|
|
|
|
[(); <i32 as Trait>::N]:,
|
|
|
|
{}
|
|
|
|
|
|
|
|
fn main() {}
|