fune/third_party/rust/extend/tests/compile_pass/pub_impl.rs
Ben Dean-Kawamura 760c603bcb Bug 1766045 - Vendoring in Rust code for uniffi-bindgen-gecko-js r=glandium,supply-chain-reviewers
- Added `--enable-uniffi-fixtures` flag.  When set, we will compile in
  the UniFFI test fixtures into our shared Rust crate and eventually
  into `libxul`.
- Vendoring in the Rust crates needed for `uniffi-bindgen-gecko-js`

Differential Revision: https://phabricator.services.mozilla.com/D144467
2022-08-03 13:48:27 +00:00

15 lines
171 B
Rust

mod a {
use extend::ext;
#[ext]
pub impl i32 {
fn foo() -> Foo { Foo }
}
pub struct Foo;
}
fn main() {
use a::i32Ext;
i32::foo();
}