Skip to content

client_side_validation regression #224

Open
@compiler-errors

Description

@compiler-errors

https://crater-reports.s3.amazonaws.com/pr-133502-13/try%233cddd79d4be3c8f1e937d09ca618d192abc69373/gh/cyphernet-dao.ssi/log.txt

struct Holder<T>(T);

impl<T> Holder<T> {
    fn as_type(&self) -> &T {
        &self.0
    }
}

trait CommitEncode {
    fn commit_encode(&self);
}

impl<T: 'static> CommitEncode for Holder<&'static T>
where
    T: CommitEncode,
{
    fn commit_encode(&self) {
        self.as_type().commit_encode();
    }
}

impl<T: 'static> CommitEncode for T
where
    T: Other,
    Holder<&'static T>: CommitEncode,
{
    fn commit_encode(&self) {
        todo!()
    }
}

trait Other {}
impl<T> Other for &T {}

fn main() {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    from-craterA regression found via a crater run, not part of our test suite

    Type

    No type

    Projects

    Status

    unknown

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions