mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
19 lines
356 B
Rust
19 lines
356 B
Rust
//@ run-rustfix
|
|
|
|
#![feature(generic_const_items)]
|
|
#![allow(incomplete_features, dead_code)]
|
|
|
|
const K<T>: u64
|
|
= T::K where
|
|
T: Tr<()>;
|
|
//~^^^ ERROR where clauses are not allowed before const item bodies
|
|
|
|
trait Tr<P> {
|
|
const K: u64
|
|
= 0 where
|
|
P: Copy;
|
|
//~^^^ ERROR where clauses are not allowed before const item bodies
|
|
}
|
|
|
|
fn main() {}
|