mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
10 lines
159 B
Rust
10 lines
159 B
Rust
#![feature(thread_local)]
|
|
|
|
#[thread_local]
|
|
static FOO: u8 = 3;
|
|
|
|
fn assert_static(_t: &'static u8) {}
|
|
fn main() {
|
|
assert_static(&FOO); //~ ERROR [E0712]
|
|
}
|