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