fork/rust

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

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

master
2.0 KiB75 linesraw
1error: expected `;`, found `}`
2  --> $DIR/missing-semicolon.rs:6:7
3   |
4LL |     ()
5   |       ^ help: add `;` here
6LL | }
7   | - unexpected token
8
9error: expected `;`, found `}`
10  --> $DIR/missing-semicolon.rs:32:7
11   |
12LL |     ()
13   |       ^ help: add `;` here
14LL | }
15   | - unexpected token
16
17error[E0618]: expected function, found `{integer}`
18  --> $DIR/missing-semicolon.rs:5:13
19   |
20LL |       let x = 5;
21   |           - `x` has type `{integer}`
22LL |       let y = x
23   |               ^- help: consider using a semicolon here to finish the statement: `;`
24   |  _____________|
25   | |
26LL | |     ()
27   | |______- call expression requires function
28
29error[E0618]: expected function, found `{integer}`
30  --> $DIR/missing-semicolon.rs:11:13
31   |
32LL |       let x = 5;
33   |           - `x` has type `{integer}`
34LL |       let y = x
35   |               ^- help: consider using a semicolon here to finish the statement: `;`
36   |  _____________|
37   | |
38LL | |     ();
39   | |______- call expression requires function
40
41error[E0618]: expected function, found `{integer}`
42  --> $DIR/missing-semicolon.rs:16:5
43   |
44LL |       let x = 5;
45   |           - `x` has type `{integer}`
46LL |       x
47   |       ^- help: consider using a semicolon here to finish the statement: `;`
48   |  _____|
49   | |
50LL | |     ()
51   | |______- call expression requires function
52
53error[E0618]: expected function, found `{integer}`
54  --> $DIR/missing-semicolon.rs:31:13
55   |
56LL |       let y = 5
57   |               ^- help: consider using a semicolon here to finish the statement: `;`
58   |  _____________|
59   | |
60LL | |     ()
61   | |______- call expression requires function
62
63error[E0618]: expected function, found `{integer}`
64  --> $DIR/missing-semicolon.rs:35:5
65   |
66LL |       5
67   |       ^- help: consider using a semicolon here to finish the statement: `;`
68   |  _____|
69   | |
70LL | |     ();
71   | |______- call expression requires function
72
73error: aborting due to 7 previous errors
74
75For more information about this error, try `rustc --explain E0618`.