Skip to content

Unexpected token: expected ;, found #. #106020

Closed
@Jerrody

Description

@Jerrody
#[cfg(feature = "validation")]
[debug_utils_ext, (*surface_extensions).to_owned()].concat()

#[cfg(not(feature = "validation"))]
surface_extensions.to_owned()

Error code:

error: expected `;`, found `#`
  --> src\engine\renderer\context\instance.rs:44:73
   |
44 |             [debug_utils_ext, (*surface_extensions).to_owned()].concat()
   |                                                                         ^ help: add `;` here
45 |
46 |             #[cfg(not(feature = "validation"))]
   |             - unexpected token

Metadata:

rustc 1.67.0-nightly (e1d819583 2022-12-05)
binary: rustc
commit-hash: e1d819583f0bf13b016b119c1c2c43e6d3979450
commit-date: 2022-12-05
host: x86_64-pc-windows-msvc
release: 1.67.0-nightly
LLVM version: 15.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an ASTD-confusingDiagnostics: Confusing error or lint that should be reworked.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions