Skip to content

Commit

Permalink
annotate unsafe_fields test with #![feature(unsafe_fields)]
Browse files Browse the repository at this point in the history
I want to make it clearer that these tests are associated with the
unstable `unsafe_fields` feature.
  • Loading branch information
ytmimi committed Dec 4, 2024
1 parent af9e9c0 commit 334ee77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/source/unsafe-field.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![feature(unsafe_fields)]

struct Foo {
unsafe
field: (),
Expand Down
2 changes: 2 additions & 0 deletions tests/target/unsafe-field.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![feature(unsafe_fields)]

struct Foo {
unsafe field: (),
}
Expand Down

0 comments on commit 334ee77

Please sign in to comment.