Skip to content

kinds are not (always?) enforced in impl calls #1915

@nikomatsakis

Description

@nikomatsakis

I expect an error in foo() because T is not copyable:

fn foo<T>() {
    1u.bar::<T>();
}

impl methods for uint {
    fn bar<T:copy>() {
    }
}

fn main() {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions