Skip to content

&..: unexpected token .. #25119

Closed
Closed
@huonw

Description

@huonw
fn main() { &..; }
<anon>:1:14: 1:16 error: unexpected token: `..`
<anon>:1 fn main() { &..; }
                      ^~

This may be on purpose, but if not, this is useful for passing .. into generic APIs that take references.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of RustA-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions