chore: add comment explaining annotation

This commit is contained in:
Ifiok Jr.
2025-03-22 08:04:13 +00:00
parent a74713a371
commit ae23364ef8

View File

@@ -1,4 +1,17 @@
#![cfg(feature = "browser")]
// The trybuild output has slightly different error message ouptut for
// different combinations of features. Since tests are run with `test-all-features`
// multiple combinations of features are tested. This ensures this file is only
// run when **only** the browser feature is enabled.
#![cfg(all(
feature = "browser",
not(any(
feature = "postcard",
feature = "multipart",
feature = "serde-lite",
feature = "cbor",
feature = "msgpack"
))
))]
#[test]
fn aliased_results() {