summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-70167.rs
blob: 58fac8e05114a68c8cb095f48a1cbdbbd02cdc26 (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

pub trait Trait<const N: usize>: From<<Self as Trait<N>>::Item> {
  type Item;
}

fn main() {}