2020-10-03 13:30:32 -05:00
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:8:8
|
|
|
|
|
|
|
|
|
LL | foo<BAR + 3>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR + 3>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:11:8
|
|
|
|
|
|
|
|
|
LL | foo<BAR + BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR + BAR>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:14:8
|
|
|
|
|
|
|
|
|
LL | foo<3 + 3>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<3 + 3>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:17:8
|
|
|
|
|
|
|
|
|
LL | foo<BAR - 3>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - 3>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:20:8
|
|
|
|
|
|
|
|
|
LL | foo<BAR - BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - BAR>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:23:8
|
|
|
|
|
|
|
|
|
LL | foo<100 - BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<100 - BAR>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:26:8
|
|
|
|
|
|
|
|
|
LL | foo<bar<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar<i32>()>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: expected one of `;` or `}`, found `>`
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:26:19
|
|
|
|
|
|
|
|
|
LL | foo<bar<i32>()>();
|
|
|
|
| ^ expected one of `;` or `}`
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:30:8
|
|
|
|
|
|
|
|
|
LL | foo<bar::<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar::<i32>()>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:33:8
|
|
|
|
|
|
|
|
|
LL | foo<bar::<i32>() + BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar::<i32>() + BAR>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:36:8
|
|
|
|
|
|
|
|
|
LL | foo<bar::<i32>() - BAR>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<bar::<i32>() - BAR>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:39:8
|
|
|
|
|
|
|
|
|
LL | foo<BAR - bar::<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - bar::<i32>()>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: comparison operators cannot be chained
|
|
|
|
--> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:42:8
|
|
|
|
|
|
|
|
|
LL | foo<BAR - bar::<i32>()>();
|
|
|
|
| ^ ^
|
|
|
|
|
|
2020-10-27 19:41:40 -05:00
|
|
|
help: use `::<...>` instead of `<...>` to specify type or const arguments
|
2020-10-03 13:30:32 -05:00
|
|
|
|
|
|
|
|
LL | foo::<BAR - bar::<i32>()>();
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
|
|
|
|