Skip to content

regression: the method as_ref exists for reference #147964

@BoxyUwU

Description

@BoxyUwU
[INFO] [stdout] error[E0599]: the method `as_ref` exists for reference `&Cow<'_, T>`, but its trait bounds were not satisfied
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/assertor-0.0.3/src/assertions/cow.rs:77:35
[INFO] [stdout]    |
[INFO] [stdout] 77 |         let value = self.actual().as_ref().to_owned();
[INFO] [stdout]    |                                   ^^^^^^ method cannot be called on `&Cow<'_, T>` due to unsatisfied trait bounds
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-types-nominatedNominated for discussion during a types team meeting.P-highHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions