| 1 | // Module with attribute |
| 2 | @[manualfree] |
| 3 | module websocket |
| 4 | |
| 5 | fn C.no_body_function() |
| 6 | fn C.another_one(x int) |
| 7 | |
| 8 | fn C.separated_from_my_body_and_the_above() |
| 9 | |
| 10 | fn main() {} |
| 11 | |
| 12 | // This should stay between both functions |
| 13 | |
| 14 | fn x() {} |
| 15 | |
| 16 | // doc comment above an attributed function |
| 17 | @[inline] |
| 18 | fn y_with_attr() { |
| 19 | } |
| 20 | |
| 21 | // doc comment above an attributed struct |
| 22 | @[typedef] |
| 23 | struct FooWithAttr { |
| 24 | } |
| 25 | |
| 26 | fn between_assembly_blocks() { |
| 27 | asm amd64 { |
| 28 | } |
| 29 | |
| 30 | asm i386 { |
| 31 | } |
| 32 | } |
| 33 |