blob: c8f7553da7982ef03efcadceaadf78a0199b7377 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
trait Trait {
const ASSOC: usize;
}
fn foo<T: Trait, U: Trait>() where [(); U::ASSOC]:, {
bar::<{ T::ASSOC }>();
//~^ ERROR: unconstrained generic constant
}
fn bar<const N: usize>() {}
fn main() {}
|