blob: 94f76643664dcda9b41a3897f5d2816b8bc39fcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Make sure we don't mess up the formatting of generic consts
#![feature(generic_const_items)]
const GENERIC<N, const M: usize>: i32 = 0;
const WHERECLAUSE: i32 = 0
where
i32:;
trait Foo {
const GENERIC<N, const M: usize>: i32;
const WHERECLAUSE: i32
where
i32:;
}
impl Foo for () {
const GENERIC<N, const M: usize>: i32 = 0;
const WHERECLAUSE: i32 = 0
where
i32:;
}
|