File tree 3 files changed +16
-9
lines changed
3 files changed +16
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
#[ repr( align( 16 ) ) ] //~ ERROR `repr(align)` attributes on functions are unstable
4
4
fn requires_alignment ( ) { }
5
+
6
+ trait MyTrait {
7
+ #[ repr( align) ] //~ ERROR `repr(align)` attributes on functions are unstable
8
+ fn myfun ( ) ;
9
+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,16 @@ LL | #[repr(align(16))]
8
8
= help: add `#![feature(fn_align)]` to the crate attributes to enable
9
9
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10
10
11
- error: aborting due to 1 previous error
11
+ error[E0658]: `repr(align)` attributes on functions are unstable
12
+ --> $DIR/feature-gate-fn_align.rs:7:12
13
+ |
14
+ LL | #[repr(align)]
15
+ | ^^^^^
16
+ |
17
+ = note: see issue #82232 <https://github.com/rust-lang/rust/issues/82232> for more information
18
+ = help: add `#![feature(fn_align)]` to the crate attributes to enable
19
+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20
+
21
+ error: aborting due to 2 previous errors
12
22
13
23
For more information about this error, try `rustc --explain E0658`.
You can’t perform that action at this time.
0 commit comments