rust/tests/ui/const-generics/issues/issue-98629.rs

17 lines
229 B
Rust
Raw Normal View History

#![feature(const_trait_impl)]
2022-08-28 01:27:31 -05:00
#[const_trait]
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() {}