summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-82566-1.rs
blob: 95c31fbaa289ace51be419dcec281f4f5f0f8d77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
struct T1<const X1: usize>;
struct T2<const X1: usize, const X2: usize>;
struct T3<const X1: usize, const X2: usize, const X3: usize>;

impl T1<1> {
    const C: () = ();
}

impl T2<1, 2> {
    const C: () = ();
}

impl T3<1, 2, 3> {
    const C: () = ();
}

fn main() {
    T1<1>::C; //~ ERROR: comparison operators cannot be chained
    T2<1, 2>::C; //~ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
    T3<1, 2, 3>::C; //~ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
}