mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
433da1fc04
They pass fine.
16 lines
294 B
Rust
16 lines
294 B
Rust
extern crate instance_user_dylib;
|
|
extern crate instance_user_a_rlib;
|
|
extern crate instance_user_b_rlib;
|
|
|
|
use std::cell::Cell;
|
|
|
|
fn main() {
|
|
|
|
instance_user_a_rlib::foo();
|
|
instance_user_b_rlib::foo();
|
|
instance_user_dylib::foo();
|
|
|
|
let a: Cell<i32> = Cell::new(1);
|
|
a.set(123);
|
|
}
|