diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-06 20:08:29 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-02-13 03:45:04 +0000 |
| commit | feb78f904e9e66e4fed9fe2e7e6363bb79d22be5 (patch) | |
| tree | 64bc05c425320634da7fb04a7a9cf770b03cc0b3 | |
| parent | 65da92e77c60a7144145b02719272b2c99419705 (diff) | |
| download | rust-feb78f904e9e66e4fed9fe2e7e6363bb79d22be5.tar.gz rust-feb78f904e9e66e4fed9fe2e7e6363bb79d22be5.zip | |
Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity
| -rw-r--r-- | example/mini_core.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs index 5a4ee0a198c..2ff1d757fd4 100644 --- a/example/mini_core.rs +++ b/example/mini_core.rs @@ -54,6 +54,9 @@ impl<T: ?Sized, A: Allocator> LegacyReceiver for Box<T, A> {} #[lang = "copy"] pub trait Copy {} +#[lang = "bikeshed_guaranteed_no_drop"] +pub trait BikeshedGuaranteedNoDrop {} + impl Copy for bool {} impl Copy for u8 {} impl Copy for u16 {} |
