Skip to content

regression: lifetime bound not satisfied #119874

Closed as not planned
Closed as not planned
@Mark-Simulacrum

Description

@Mark-Simulacrum
[INFO] [stdout] error[E0478]: lifetime bound not satisfied
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/schema_analysis-0.3.4/src/traits.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 53 |     fn coalesce_any(&mut self, other: Box<dyn Any + 'a>) -> Option<Box<dyn Any>> {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: lifetime parameter instantiated with the lifetime `'a` as defined here
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/schema_analysis-0.3.4/src/traits.rs:52:6
[INFO] [stdout]    |
[INFO] [stdout] 52 | impl<'a, T: Coalesce + 'a> CoalesceAny for T {
[INFO] [stdout]    |      ^^
[INFO] [stdout]    = note: but lifetime parameter must outlive the static lifetime

https://crater-reports.s3.amazonaws.com/beta-1.76-3/beta-2024-01-09/gh/lizelive.gusteau/log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions