Skip to content

Commit aca660e

Browse files
committed
Updated ui test for zeroize-on-drop
1 parent 4e9eeb1 commit aca660e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/ui/zeroize-on-drop/zeroize-on-drop.stderr

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ note: the following trait bounds were not satisfied:
1616
--> tests/ui/zeroize-on-drop/zeroize-on-drop.rs:10:1
1717
|
1818
10 | #[derive_where(ZeroizeOnDrop(no_drop))]
19-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
19+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter would need to implement `AssertZeroizeOnDrop`
20+
= help: consider manually implementing the trait to avoid undesired bounds
2021
= help: items from traits can only be used if the type parameter is bounded by the trait
21-
= note: this error originates in the derive macro `::derive_where::DeriveWhere` which comes from the expansion of the attribute macro `derive_where` (in Nightly builds, run with -Z macro-backtrace for more info)
22+
= note: this error originates in the derive macro `::derive_where::DeriveWhere` (in Nightly builds, run with -Z macro-backtrace for more info)
2223
help: the following trait defines an item `__derive_where_zeroize_on_drop`, perhaps you need to restrict type parameter `T` with it:
2324
|
24-
11 | struct NoDropNoZeroizeOnDrop<T: <NoDropNoZeroizeOnDrop<T> as DeriveWhereAssertZeroizeOnDrop>::assert::AssertZeroizeOnDrop>(T);
25-
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25+
11 | struct NoDropNoZeroizeOnDrop<T: AssertZeroizeOnDrop>(T);
26+
| +++++++++++++++++++++

0 commit comments

Comments
 (0)