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
{{ message }}
Repository navigation
Commit 4b4a5b4
Browse filesBrowse the repository at this point in the historyBrowse files
test(stack-encrypt): pin the borrowed element refusal on the trait, not the method
Calling `encrypt_into` as a method on `Vec<&str>` fails method resolution
(E0599), and rustc then quotes the `Vec` definition from the standard
library source when the `rust-src` component is installed. CI's toolchain
does not install it, so the recorded expectation matched locally and not
in CI. Calling the trait function directly fails on the element bound
instead (`&str: OpaqueEncode`), which names the actual refusal and prints
the same text with or without `rust-src`.
| ------------ required by a bound in this associated function
63
+
| where
64
+
| T: EncryptTarget<Self>,
65
+
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `EncryptInto::encrypt_into`
66
+
= note: this error originates in the macro `opaque` (in Nightly builds, run with -Z macro-backtrace for more info)
67
+
68
+
error[E0277]: the trait bound `&str: zeroize::Zeroize` is not satisfied
69
+
--> tests/ui/owned_collection_elements.rs:12:13
70
+
|
71
+
12 | let _ = EncryptInto::encrypt_into::<Vec<Ciphertext>, _>(vec!["borrowed", "plaintext"], keyset);
72
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zeroize::DefaultIsZeroes` is not implemented for `&str`
73
+
|
74
+
= help: the following other types implement trait `zeroize::DefaultIsZeroes`:
75
+
()
76
+
PhantomPinned
77
+
bool
78
+
char
79
+
f32
80
+
f64
81
+
i128
82
+
i16
83
+
and $N others
84
+
= note: required for `&str` to implement `zeroize::Zeroize`
85
+
= note: required for `Vec<stack_encrypt::Ciphertext>` to implement `EncryptTarget<Vec<&str>>`
72
86
73
87
error[E0277]: the trait bound `Vec<u8>: OpaqueEncode` is not satisfied
0 commit comments