1 error: comparison operators cannot be chained
2 --> $DIR/issue-82566-2.rs:17:23
4 LL | fn foo1() -> [(); Foo1<10>::SUM] {
7 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
9 LL | fn foo1() -> [(); Foo1::<10>::SUM] {
12 error: expected one of `.`, `?`, `]`, or an operator, found `,`
13 --> $DIR/issue-82566-2.rs:21:26
15 LL | fn foo2() -> [(); Foo2<10, 20>::SUM] {
16 | ^ expected one of `.`, `?`, `]`, or an operator
18 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
20 LL | fn foo2() -> [(); Foo2::<10, 20>::SUM] {
23 error: expected one of `.`, `?`, `]`, or an operator, found `,`
24 --> $DIR/issue-82566-2.rs:26:26
26 LL | fn foo3() -> [(); Foo3<10, 20, 30>::SUM] {
27 | ^ expected one of `.`, `?`, `]`, or an operator
29 help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
31 LL | fn foo3() -> [(); Foo3::<10, 20, 30>::SUM] {
34 error: aborting due to 3 previous errors