mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-21 16:45:08 +00:00
14 lines
293 B
Plaintext
14 lines
293 B
Plaintext
//@ run-rustfix
|
|
#![allow(incomplete_features, dead_code, unused_braces)]
|
|
#![feature(generic_const_exprs)]
|
|
|
|
trait Bar<const N: usize> {}
|
|
|
|
trait Foo<'a> {
|
|
const N: usize;
|
|
type Baz: Bar<{ Self::N }> where [(); { Self::N }]:;
|
|
//~^ ERROR: unconstrained generic constant
|
|
}
|
|
|
|
fn main() {}
|