Skip to content

Send bound must be repeated for trait object even though trait itself is bound by Send #18987

Closed
@carllerche

Description

@carllerche

Repro:

pub trait Foo : Send {
}

pub struct MyFoo {
    children: Vec<Box<Foo>>,
}

impl Foo for MyFoo {
}

pub fn main() {
}

cc @nikomatsakis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions