1 error: free function without a body
2 --> $DIR/fn-body-optional-semantic-fail.rs:4:5
7 | help: provide a definition for the function: `{ <body> }`
9 error: associated function in `impl` without body
10 --> $DIR/fn-body-optional-semantic-fail.rs:14:9
15 | help: provide a definition for the function: `{ <body> }`
17 error: associated function in `impl` without body
18 --> $DIR/fn-body-optional-semantic-fail.rs:19:9
23 | help: provide a definition for the function: `{ <body> }`
25 error: incorrect function inside `extern` block
26 --> $DIR/fn-body-optional-semantic-fail.rs:25:12
29 | ---------- `extern` blocks define existing foreign functions and functions inside of them cannot have a body
32 | ^^ -- help: remove the invalid body: `;`
36 = help: you might have meant to write a function accessible through FFI, which can be done by writing `extern fn` outside of the `extern` block
37 = note: for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
39 error: aborting due to 4 previous errors