fork/rust

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

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

master
1.3 KiB53 linesraw
1error: expected identifier, found `1`
2  --> $DIR/resolve-hint-macro.rs:5:17
3   |
4LL |     assert_eq { 1, 1 };
5   |     ---------   ^ expected identifier
6   |     |
7   |     while parsing this struct
8
9error: expected identifier, found `1`
10  --> $DIR/resolve-hint-macro.rs:5:20
11   |
12LL |     assert_eq { 1, 1 };
13   |     ---------      ^ expected identifier
14   |     |
15   |     while parsing this struct
16
17error[E0574]: expected struct, variant or union type, found macro `assert_eq`
18  --> $DIR/resolve-hint-macro.rs:5:5
19   |
20LL |     assert_eq { 1, 1 };
21   |     ^^^^^^^^^ not a struct, variant or union type
22   |
23help: use `!` to invoke the macro
24   |
25LL |     assert_eq! { 1, 1 };
26   |              +
27
28error[E0423]: expected value, found macro `assert`
29  --> $DIR/resolve-hint-macro.rs:9:5
30   |
31LL |     assert[true];
32   |     ^^^^^^ not a value
33   |
34help: use `!` to invoke the macro
35   |
36LL |     assert![true];
37   |           +
38
39error[E0423]: expected function, found macro `assert_eq`
40  --> $DIR/resolve-hint-macro.rs:3:5
41   |
42LL |     assert_eq(1, 1);
43   |     ^^^^^^^^^ not a function
44   |
45help: use `!` to invoke the macro
46   |
47LL |     assert_eq!(1, 1);
48   |              +
49
50error: aborting due to 5 previous errors
51
52Some errors have detailed explanations: E0423, E0574.
53For more information about an error, try `rustc --explain E0423`.