Skip to content

cfg(false) where where #24

@matthiaskrgr

Description

@matthiaskrgr

probably minor

The following code

#![feature(extern_types)]
fn main() {}
#[cfg(false)]
extern "C" {
    type A<T: Ord> where where T: 'static;
}

Compiled successfully ( with --crate-type=lib --cap-lints=warn):

warning: function `main` is never used
 --> ./a.rs:2:4
  |
2 | fn main() {}
  |    ^^^^
  |
  = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: 1 warning emitted


However rasur was found to have errors (-e 2015):

error: found `where` but expected `;`
 --> ./a.rs:5:26
  |
5 |     type A<T: Ord> where where T: 'static;
  |                          ^^^^^ unexpected token

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-lowTechnical complexity: LowC-socialComplexity: Social in natureK-upstream-bugKind: A bug in rustc or in the Rust language.P-mediumPriority: MediumS-actionableStatus: Actionable

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions