-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
rust-lang/rust
#140711Labels
A-overflowHaving to do with overflowHaving to do with overflowfrom-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
Description
trait Intersect<U> {
type Output;
}
impl<T, U> Intersect<Vec<U>> for T
where
T: Intersect<U>,
{
type Output = T;
}
impl Intersect<Cuboid> for Cuboid {
type Output = Cuboid;
}
fn intersect<T, U>(_: &T, _: &U) -> T::Output
where
T: Intersect<U>,
{
todo!()
}
struct Cuboid;
impl Cuboid {
fn method(&self) {}
}
fn main() {
let x = vec![];
let y = intersect(&Cuboid, &x);
y.method();
let x: Vec<Cuboid> = x;
}
Metadata
Metadata
Assignees
Labels
A-overflowHaving to do with overflowHaving to do with overflowfrom-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
Type
Projects
Status
done