mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
226 B
Rust
13 lines
226 B
Rust
#![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() {}
|