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

13 lines
226 B
Rust
Raw Normal View History

2021-09-02 15:20:51 -05:00
#![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() {}