blob: 440ca740af2b05dee11fab5be35e4770bba37d3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]
trait Bar<const N: usize> {}
trait Foo<'a> {
const N: usize;
type Baz: Bar<{ Self::N }>;
//~^ ERROR: unconstrained generic constant
}
fn main() {}
|