mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
c43344e839
Before making thread_local accept statements inside the const block, this test would fail to compile as follows: error: no rules expected the token `let` --> library/std/tests/thread.rs:26:13 | 26 | let value = 1; | ^^^ no rules expected this token in macro call | note: while trying to match meta-variable `$init:expr` --> library/std/src/thread/local.rs:189:69 | 189 | ($(#[$attr:meta])* $vis:vis static $name:ident: $t:ty = const { $init:expr }; $($rest:tt)*) => ( | ^^^^^^^^^^ |
||
---|---|---|
.. | ||
common | ||
create_dir_all_bare.rs | ||
env.rs | ||
process_spawning.rs | ||
run-time-detect.rs | ||
switch-stdout.rs | ||
thread.rs |