mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-05 10:51:28 +00:00
21 lines
359 B
Rust
21 lines
359 B
Rust
// run-rustfix
|
|
|
|
#![feature(generic_const_items)]
|
|
#![allow(incomplete_features, dead_code)]
|
|
|
|
const K<T>: u64
|
|
where
|
|
T: Tr<()>
|
|
= T::K;
|
|
//~^^^ ERROR where clauses are not allowed before const item bodies
|
|
|
|
trait Tr<P> {
|
|
const K: u64
|
|
where
|
|
P: Copy
|
|
= 0;
|
|
//~^^^ ERROR where clauses are not allowed before const item bodies
|
|
}
|
|
|
|
fn main() {}
|