2020-10-03 13:30:32 -05:00
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:6:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<BAR + 3>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR + 3>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:9:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<BAR + BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR + BAR>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:12:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<3 + 3>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<3 + 3>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:15:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<BAR - 3>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - 3>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:18:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<BAR - BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - BAR>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:21:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<100 - BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<100 - BAR>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:24:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<bar<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar<i32>()>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: expected one of `;` or `}`, found `>`
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:24:19
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<bar<i32>()>();
|
|
|
|
| ^ expected one of `;` or `}`
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:28:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<bar::<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar::<i32>()>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:31:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<bar::<i32>() + BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar::<i32>() + BAR>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:34:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<bar::<i32>() - BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar::<i32>() - BAR>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:37:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<BAR - bar::<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - bar::<i32>()>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:40:8
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo<BAR - bar::<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2022-01-13 17:44:17 -06:00
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - bar::<i32>()>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
|
|
|
|