---
# System prepended metadata

title: "\n"

---

The input test:

```rust
#[test_wasm]
fn test_add() {
    assert_eq!(2 + 2, 4);
}
```

---

The expanded `rust`:

```rust
// ...

#[doc(hidden)]
#[cfg(target_arch = "wasm32")]
#[link_section = "component-type:test_wasm:0.1.0:test-add:encoded world"]
pub static _WIT_BINDGEN_COMPONENT_TYPE_TEST_ADD: [u8; 149usize] = *b"\x00asm\r\x00\x01\x00\x00\x19\x16wit-component-encoding\x04\x00\x07/\x01A\x02\x01A\x02\x01@\x00\x01\x00\x04\x00\x08test-add\x01\x00\x04\x01\x12test:test/test-add\x04\x00\x0b\x0e\x01\x00\x08test-add\x03\x00\x00\x00/\tproducers\x01\x0cprocessed-by\x01\rwit-component\x070.201.0";

#[export_name = "test-add"]
#[doc(hidden)]
#[cfg(target_arch = "wasm32")]
unsafe extern "C" fn __test_wasm_test_add() {
    test_add();
}
```

---

The synthesized inlined component type represents this world:
```
pacakge test:test;

world test-add {
    export test-add: func();
}
```