]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-82566-1.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / issue-82566-1.rs
1 struct T1<const X1: usize>;
2 struct T2<const X1: usize, const X2: usize>;
3 struct T3<const X1: usize, const X2: usize, const X3: usize>;
4
5 impl T1<1> {
6     const C: () = ();
7 }
8
9 impl T2<1, 2> {
10     const C: () = ();
11 }
12
13 impl T3<1, 2, 3> {
14     const C: () = ();
15 }
16
17 fn main() {
18     T1<1>::C; //~ ERROR: comparison operators cannot be chained
19     T2<1, 2>::C; //~ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
20     T3<1, 2, 3>::C; //~ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
21 }