mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
230 B
Rust
17 lines
230 B
Rust
//@ build-pass (FIXME(62277): could be check-pass?)
|
|
//@ edition:2018
|
|
|
|
macro_rules! define_iso { () => {
|
|
extern crate std as iso;
|
|
}}
|
|
|
|
::iso::thread_local! {
|
|
static S: u8 = 0;
|
|
}
|
|
|
|
define_iso!();
|
|
|
|
fn main() {
|
|
let s = S;
|
|
}
|