forked from mirrors/gecko-dev
- 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
10 lines
132 B
Rust
10 lines
132 B
Rust
use extend::ext;
|
|
|
|
#[ext]
|
|
impl Option<String> {
|
|
const FOO: usize = 1;
|
|
}
|
|
|
|
fn main() {
|
|
assert_eq!(Option::<String>::FOO, 1);
|
|
}
|