2021-02-27 04:37:50 -06:00
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/issue-82566-2.rs:17:23
|
|
|
|
|
|
|
|
|
LL | fn foo1() -> [(); Foo1<10>::SUM] {
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2021-02-27 04:37:50 -06:00
|
|
|
|
|
|
|
|
LL | fn foo1() -> [(); Foo1::<10>::SUM] {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2021-02-27 04:37:50 -06:00
|
|
|
|
|
|
|
error: expected one of `.`, `?`, `]`, or an operator, found `,`
|
|
|
|
--> $DIR/issue-82566-2.rs:21:26
|
|
|
|
|
|
|
|
|
LL | fn foo2() -> [(); Foo2<10, 20>::SUM] {
|
|
|
|
| ^ expected one of `.`, `?`, `]`, or an operator
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2021-02-27 04:37:50 -06:00
|
|
|
|
|
|
|
|
LL | fn foo2() -> [(); Foo2::<10, 20>::SUM] {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2021-02-27 04:37:50 -06:00
|
|
|
|
|
|
|
error: expected one of `.`, `?`, `]`, or an operator, found `,`
|
|
|
|
--> $DIR/issue-82566-2.rs:26:26
|
|
|
|
|
|
|
|
|
LL | fn foo3() -> [(); Foo3<10, 20, 30>::SUM] {
|
|
|
|
| ^ expected one of `.`, `?`, `]`, or an operator
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2021-02-27 04:37:50 -06:00
|
|
|
|
|
|
|
|
LL | fn foo3() -> [(); Foo3::<10, 20, 30>::SUM] {
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2021-02-27 04:37:50 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|