summary refs log tree commit diff
path: root/library/std/tests/thread.rs
AgeCommit message (Collapse)AuthorLines
2024-01-20Add test of thread_local containing multiline const blockDavid Tolnay-0/+22
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)*) => ( | ^^^^^^^^^^
2020-11-30Make ui test that are run-pass and do not test the compiler itself library testsChristiaan Dirkx-0/+16