Skip to content

Can't use where clauses with tuple structs #17904

Closed
@japaric

Description

@japaric

STR

// OK
struct Bar<T> where T: Copy {
    inner: T,
}

// Is this the right syntax?
struct Foo<T>(T) where T: Copy;  //~ error: expected `;`, found `where`

fn main() {}

Version

rustc 0.12.0-dev (10fc25a39 2014-10-09 16:04:25 -0500)

(PR 17669 on top of b08ecf7)

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