fork/rust

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

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

master
2.5 KiB65 linesraw
1error: expected one of `!`, `(`, `+`, `,`, `::`, or `<`, found `)`
2  --> $DIR/offset-of-builtin.rs:8:43
3   |
4LL |     builtin # offset_of(NotEnoughArguments);
5   |                                           ^ expected one of `!`, `(`, `+`, `,`, `::`, or `<`
6
7error: expected identifier, found `,`
8  --> $DIR/offset-of-builtin.rs:16:41
9   |
10LL |     builtin # offset_of(Container, field, too many arguments);
11   |                                         ^
12   |                                         |
13   |                                         expected identifier
14   |                                         help: remove this comma
15
16error: expected one of `)` or `.`, found `,`
17  --> $DIR/offset-of-builtin.rs:16:41
18   |
19LL |     builtin # offset_of(Container, field, too many arguments);
20   |                                         ^
21   |                                         |
22   |                                         expected one of `)` or `.`
23   |                                         help: missing `.`
24
25error: expected one of `)` or `.`, found `many`
26  --> $DIR/offset-of-builtin.rs:16:47
27   |
28LL |     builtin # offset_of(Container, field, too many arguments);
29   |                                              -^^^^ expected one of `)` or `.`
30   |                                              |
31   |                                              help: missing `.`
32
33error: expected one of `)` or `.`, found `arguments`
34  --> $DIR/offset-of-builtin.rs:16:52
35   |
36LL |     builtin # offset_of(Container, field, too many arguments);
37   |                                                   -^^^^^^^^^ expected one of `)` or `.`
38   |                                                   |
39   |                                                   help: missing `.`
40
41error: expected identifier, found `)`
42  --> $DIR/offset-of-builtin.rs:30:30
43   |
44LL |     builtin # offset_of(S, f.);
45   |                              ^ expected identifier
46
47error: expected identifier, found `,`
48  --> $DIR/offset-of-builtin.rs:33:30
49   |
50LL |     builtin # offset_of(S, f.,);
51   |                              ^ expected identifier
52
53error: expected one of `)` or `.`, found `..`
54  --> $DIR/offset-of-builtin.rs:36:29
55   |
56LL |     builtin # offset_of(S, f..);
57   |                             ^^ expected one of `)` or `.`
58   |
59help: if you meant to bind the contents of the rest of the array pattern into `f`, use `@`
60   |
61LL |     builtin # offset_of(S, f @ ..);
62   |                              +
63
64error: aborting due to 8 previous errors
65