Skip to content

downcast regression: ambiguity due to global where-bounds  #172

Closed
rust-lang/rust
#139791
@compiler-errors

Description

@compiler-errors

https://crater-reports.s3.amazonaws.com/pr-133502-1/try%23fa8e241660363f48d64b66b05eea58c93ab828fb/reg/mockall-0.13.1/log.txt

pub trait Any: 'static {}

pub trait Downcast<T>: Any
where
    T: Any,
{
}

impl dyn Any {
    pub fn is<T>(&self)
    where
        T: Any,
        Self: Downcast<T>,
    {
    }
}

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions