fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
355 B18 linesraw
1// run-rustfix
2
3#![feature(generic_const_items)]
4#![allow(incomplete_features, dead_code)]
5
6const K<T>: u64
7= T::K where
8    T: Tr<()>;
9//~^^^ ERROR where clauses are not allowed before const item bodies
10
11trait Tr<P> {
12    const K: u64
13    = 0 where
14        P: Copy;
15    //~^^^ ERROR where clauses are not allowed before const item bodies
16}
17
18fn main() {}