2021-08-27 18:04:57 +02:00
|
|
|
#![feature(generic_const_exprs)]
|
2020-09-09 09:43:53 +02:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
trait Bar<const M: usize> {}
|
|
|
|
impl<const N: usize> Bar<N> for A<{ 6 + 1 }> {}
|
|
|
|
|
|
|
|
struct A<const N: usize>
|
|
|
|
where
|
|
|
|
A<N>: Bar<N>;
|
|
|
|
|
|
|
|
fn main() {
|
2021-01-24 20:08:12 +01:00
|
|
|
let _ = A; //~ERROR the trait bound
|
2020-09-09 09:43:53 +02:00
|
|
|
}
|