| error: none of the predicates in this `cfg_select` evaluated to true | |
| --> $DIR/cfg_select.rs:162:1 | |
| | | |
| LL | / cfg_select! { | |
| LL | | | |
| LL | | false => {} | |
| LL | | } | |
| | |_^ | |
| error: none of the predicates in this `cfg_select` evaluated to true | |
| --> $DIR/cfg_select.rs:167:1 | |
| | | |
| LL | cfg_select! {} | |
| | ^^^^^^^^^^^^^^ | |
| error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `=>` | |
| --> $DIR/cfg_select.rs:171:5 | |
| | | |
| LL | => {} | |
| | ^^ | |
| error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found expression | |
| --> $DIR/cfg_select.rs:176:5 | |
| | | |
| LL | () => {} | |
| | ^^ expressions are not allowed here | |
| error[E0565]: malformed `cfg_select` macro input | |
| --> $DIR/cfg_select.rs:181:5 | |
| | | |
| LL | "str" => {} | |
| | ^^^^^ expected a valid identifier here | |
| error[E0565]: malformed `cfg_select` macro input | |
| --> $DIR/cfg_select.rs:186:5 | |
| | | |
| LL | a::b => {} | |
| | ^^^^ expected a valid identifier here | |
| error[E0539]: malformed `cfg_select` macro input | |
| --> $DIR/cfg_select.rs:191:5 | |
| | | |
| LL | a() => {} | |
| | ^^^ valid arguments are `any`, `all`, `not` or `target` | |
| error: expected one of `(`, `::`, `=>`, or `=`, found `+` | |
| --> $DIR/cfg_select.rs:196:7 | |
| | | |
| LL | a + 1 => {} | |
| | ^ expected one of `(`, `::`, `=>`, or `=` | |
| error: expected one of `(`, `::`, `=>`, or `=`, found `!` | |
| --> $DIR/cfg_select.rs:202:8 | |
| | | |
| LL | cfg!() => {} | |
| | ^ expected one of `(`, `::`, `=>`, or `=` | |
| error: doc comments cannot be applied to `cfg_select` branches | |
| --> $DIR/cfg_select.rs:209:5 | |
| | | |
| LL | /// doc comment | |
| | ^^^^^^^^^^^^^^^ doc comments are not allowed here | |
| error: doc comments cannot be applied to `cfg_select` branches | |
| --> $DIR/cfg_select.rs:212:5 | |
| | | |
| LL | /// doc comment | |
| | ^^^^^^^^^^^^^^^ doc comments are not allowed here | |
| error: attributes cannot be applied to `cfg_select` branches | |
| --> $DIR/cfg_select.rs:218:5 | |
| | | |
| LL | #[cfg(false)] | |
| | ^^^^^^^^^^^^^ attributes are not allowed here | |
| error: an inner attribute is not permitted in this context | |
| --> $DIR/cfg_select.rs:225:5 | |
| | | |
| LL | #![cfg(false)] | |
| | ^^^^^^^^^^^^^^ | |
| | | |
| = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files | |
| = note: outer attributes, like `#[test]`, annotate the item following them | |
| error[E0753]: expected outer doc comment | |
| --> $DIR/cfg_select.rs:232:5 | |
| | | |
| LL | //! inner doc comment | |
| | ^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items | |
| help: you might have meant to write a regular comment | |
| | | |
| LL - //! inner doc comment | |
| LL + // inner doc comment | |
| | | |
| error: doc comments cannot be applied to `cfg_select` branches | |
| --> $DIR/cfg_select.rs:232:5 | |
| | | |
| LL | //! inner doc comment | |
| | ^^^^^^^^^^^^^^^^^^^^^ doc comments are not allowed here | |
| error: doc comments cannot be applied to `cfg_select` branches | |
| --> $DIR/cfg_select.rs:241:5 | |
| | | |
| LL | / /// line1 | |
| ... | | |
| LL | | /// line3 | |
| | |_____________^ doc comments are not allowed here | |
| error[E0753]: expected outer doc comment | |
| --> $DIR/cfg_select.rs:251:5 | |
| | | |
| LL | //! inner doc comment | |
| | ^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items | |
| help: you might have meant to write a regular comment | |
| | | |
| LL - //! inner doc comment | |
| LL + // inner doc comment | |
| | | |
| error: doc comments cannot be applied to `cfg_select` branches | |
| --> $DIR/cfg_select.rs:249:5 | |
| | | |
| LL | / /// outer doc comment | |
| LL | | | |
| LL | | //! inner doc comment | |
| | |_________________________^ doc comments are not allowed here | |
| error[E0425]: cannot find type `Thing1` in this scope | |
| --> $DIR/cfg_select.rs:279:13 | |
| | | |
| LL | let t1: Thing1; | |
| | ^^^^^^ not found in this scope | |
| | | |
| note: found an item that was configured out | |
| --> $DIR/cfg_select.rs:259:16 | |
| | | |
| LL | all(true, false) => { | |
| | ----- the item is gated here | |
| LL | struct Thing1; | |
| | ^^^^^^ | |
| error[E0425]: cannot find type `Thing2` in this scope | |
| --> $DIR/cfg_select.rs:281:13 | |
| | | |
| LL | let t2: Thing2; | |
| | ^^^^^^ not found in this scope | |
| | | |
| note: found an item that was configured out | |
| --> $DIR/cfg_select.rs:266:16 | |
| | | |
| LL | feature = "meow" => { | |
| | ---------------- the item is gated behind the `meow` feature | |
| LL | struct Thing2; | |
| | ^^^^^^ | |
| note: found an item that was configured out | |
| --> $DIR/cfg_select.rs:273:16 | |
| | | |
| LL | all(true, feature = "meow") => { | |
| | ---------------- the item is gated behind the `meow` feature | |
| LL | struct Thing2; | |
| | ^^^^^^ | |
| warning: unreachable configuration predicate | |
| --> $DIR/cfg_select.rs:137:5 | |
| | | |
| LL | _ => {} | |
| | - always matches | |
| LL | true => {} | |
| | ^^^^ this configuration predicate is never reached | |
| | | |
| note: the lint level is defined here | |
| --> $DIR/cfg_select.rs:3:9 | |
| | | |
| LL | #![warn(unreachable_cfg_select_predicates)] // Unused warnings are disabled by default in UI tests. | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| warning: unreachable configuration predicate | |
| --> $DIR/cfg_select.rs:143:5 | |
| | | |
| LL | true => {} | |
| | ---- always matches | |
| LL | _ => {} | |
| | ^ this configuration predicate is never reached | |
| warning: unreachable configuration predicate | |
| --> $DIR/cfg_select.rs:150:5 | |
| | | |
| LL | _ => {} | |
| | ^ this configuration predicate is never reached | |
| warning: unreachable configuration predicate | |
| --> $DIR/cfg_select.rs:156:5 | |
| | | |
| LL | test => {} | |
| | ^^^^ this configuration predicate is never reached | |
| warning: unreachable configuration predicate | |
| --> $DIR/cfg_select.rs:158:5 | |
| | | |
| LL | _ => {} | |
| | ^ this configuration predicate is never reached | |
| warning: unexpected `cfg` condition name: `a` | |
| --> $DIR/cfg_select.rs:196:5 | |
| | | |
| LL | a + 1 => {} | |
| | ^ help: found config with similar value: `target_feature = "a"` | |
| | | |
| = help: expected names are: `FALSE`, `feature`, and `test` and 34 more | |
| = help: to expect this configuration use `--check-cfg=cfg(a)` | |
| = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration | |
| = note: `#[warn(unexpected_cfgs)]` on by default | |
| warning: unexpected `cfg` condition name: `cfg` | |
| --> $DIR/cfg_select.rs:202:5 | |
| | | |
| LL | cfg!() => {} | |
| | ^^^ | |
| | | |
| = help: to expect this configuration use `--check-cfg=cfg(cfg)` | |
| = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration | |
| error: aborting due to 20 previous errors; 7 warnings emitted | |
| Some errors have detailed explanations: E0425, E0539, E0565, E0753. | |
| For more information about an error, try `rustc --explain E0425`. |