You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/feature-gates/feature-gate-static_align.stderr
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,38 @@ LL | #[rustc_align_static(16)]
18
18
= help: add `#![feature(static_align)]` to the crate attributes to enable
19
19
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20
20
21
-
error: aborting due to 2 previous errors
21
+
error[E0658]: the `#[rustc_align_static]` attribute is an experimental feature
22
+
--> $DIR/feature-gate-static_align.rs:14:1
23
+
|
24
+
LL | / thread_local! {
25
+
LL | |
26
+
LL | |
27
+
LL | | #[rustc_align_static(16)]
28
+
LL | | static THREAD_LOCAL: u16 = 0;
29
+
LL | | }
30
+
| |_^
31
+
|
32
+
= note: see issue #146177 <https://github.com/rust-lang/rust/issues/146177> for more information
33
+
= help: add `#![feature(static_align)]` to the crate attributes to enable
34
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
35
+
= note: this error originates in the macro `$crate::thread::local_impl::thread_local_inner` which comes from the expansion of the macro `thread_local` (in Nightly builds, run with -Z macro-backtrace for more info)
36
+
37
+
error[E0658]: the `#[rustc_align_static]` attribute is an experimental feature
38
+
--> $DIR/feature-gate-static_align.rs:14:1
39
+
|
40
+
LL | / thread_local! {
41
+
LL | |
42
+
LL | |
43
+
LL | | #[rustc_align_static(16)]
44
+
LL | | static THREAD_LOCAL: u16 = 0;
45
+
LL | | }
46
+
| |_^
47
+
|
48
+
= note: see issue #146177 <https://github.com/rust-lang/rust/issues/146177> for more information
49
+
= help: add `#![feature(static_align)]` to the crate attributes to enable
50
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
51
+
= note: this error originates in the macro `$crate::thread::local_impl::thread_local_inner` which comes from the expansion of the macro `thread_local` (in Nightly builds, run with -Z macro-backtrace for more info)
52
+
53
+
error: aborting due to 4 previous errors
22
54
23
55
For more information about this error, try `rustc --explain E0658`.
0 commit comments