fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB52 linesraw
1error: expressions must be enclosed in braces to be used as const generic arguments
2  --> $DIR/closing-args-token.rs:5:9
3   |
4LL |     S::<5 + 2 >> 7>;
5   |         ^^^^^
6   |
7help: enclose the `const` expression in braces
8   |
9LL |     S::<{ 5 + 2 } >> 7>;
10   |         +       +
11
12error: comparison operators cannot be chained
13  --> $DIR/closing-args-token.rs:5:16
14   |
15LL |     S::<5 + 2 >> 7>;
16   |                ^  ^
17   |
18help: split the comparison into two
19   |
20LL |     S::<5 + 2 >> 7 && 7>;
21   |                    ++++
22
23error: comparison operators cannot be chained
24  --> $DIR/closing-args-token.rs:11:20
25   |
26LL |     S::<{ 5 + 2 } >> 7>;
27   |                    ^  ^
28   |
29help: split the comparison into two
30   |
31LL |     S::<{ 5 + 2 } >> 7 && 7>;
32   |                        ++++
33
34error: expected expression, found `;`
35  --> $DIR/closing-args-token.rs:16:16
36   |
37LL |     T::<0 >= 3>;
38   |                ^ expected expression
39
40error: comparison operators cannot be chained
41  --> $DIR/closing-args-token.rs:22:12
42   |
43LL |     T::<x >>= 2 > 0>;
44   |            ^^   ^
45   |
46help: split the comparison into two
47   |
48LL |     T::<x >>= 2 && 2 > 0>;
49   |                 ++++
50
51error: aborting due to 5 previous errors
52