rust/library/std/tests
David Tolnay c43344e839
Add test of thread_local containing multiline const block
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)*) => (
        |                                                                     ^^^^^^^^^^
2024-01-20 19:00:27 -08:00
..
common Move RandomState and DefaultHasher into std::hash, but don't export for now 2023-11-02 20:35:20 -04:00
create_dir_all_bare.rs Exclude SGX from create_dir_all_bare test 2023-02-21 18:33:20 +00:00
env.rs Add data race test to std::env::{get, set} 2023-08-20 21:50:45 +02:00
process_spawning.rs apply fmt 2024-01-11 15:04:48 +03:00
run-time-detect.rs std: remove test for arm's crypto feature 2023-05-08 19:09:12 +09:00
switch-stdout.rs Fix switch_stdout_to on Windows7 2023-10-31 09:50:07 +01:00
thread.rs Add test of thread_local containing multiline const block 2024-01-20 19:00:27 -08:00