fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
803 B38 linesraw
1error: attribute should be applied to a static
2  --> $DIR/non-static.rs:4:1
3   |
4LL | #[thread_local]
5   | ^^^^^^^^^^^^^^^
6LL |
7LL | const A: u32 = 0;
8   | ----------------- not a static
9
10error: attribute should be applied to a static
11  --> $DIR/non-static.rs:8:1
12   |
13LL |   #[thread_local]
14   |   ^^^^^^^^^^^^^^^
15LL |
16LL | / fn main() {
17LL | |     #[thread_local] || {};
18LL | |
19LL | | }
20   | |_- not a static
21
22error: attribute should be applied to a static
23  --> $DIR/non-static.rs:11:5
24   |
25LL |     #[thread_local] || {};
26   |     ^^^^^^^^^^^^^^^ ----- not a static
27
28error: attribute should be applied to a static
29  --> $DIR/non-static.rs:16:5
30   |
31LL |     #[thread_local]
32   |     ^^^^^^^^^^^^^^^
33LL |
34LL |     a: String,
35   |     --------- not a static
36
37error: aborting due to 4 previous errors
38