blob: 3a5d2b0a1e1ee84d9b2d836d010e12a60f06d676 [file] [log] [blame]
warning: unreachable predicate
--> $DIR/cfg_select.rs:52:5
|
LL | _ => {}
| - always matches
LL | true => {}
| ^^^^ this predicate is never reached
error: none of the predicates in this `cfg_select` evaluated to true
--> $DIR/cfg_select.rs:56:1
|
LL | / cfg_select! {
LL | |
LL | | false => {}
LL | | }
| |_^
error: none of the predicates in this `cfg_select` evaluated to true
--> $DIR/cfg_select.rs:61:1
|
LL | cfg_select! {}
| ^^^^^^^^^^^^^^
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `=>`
--> $DIR/cfg_select.rs:65:5
|
LL | => {}
| ^^
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `(`
--> $DIR/cfg_select.rs:70:5
|
LL | () => {}
| ^
error[E0539]: malformed `cfg_select` macro input
--> $DIR/cfg_select.rs:75:5
|
LL | "str" => {}
| ^^^^^ expected a valid identifier here
|
error[E0539]: malformed `cfg_select` macro input
--> $DIR/cfg_select.rs:80:5
|
LL | a::b => {}
| ^^^^ expected a valid identifier here
|
error[E0537]: invalid predicate `a`
--> $DIR/cfg_select.rs:85:5
|
LL | a() => {}
| ^^^
error: expected one of `(`, `::`, `=>`, or `=`, found `+`
--> $DIR/cfg_select.rs:90:7
|
LL | a + 1 => {}
| ^ expected one of `(`, `::`, `=>`, or `=`
error: expected one of `(`, `::`, `=>`, or `=`, found `!`
--> $DIR/cfg_select.rs:95:8
|
LL | cfg!() => {}
| ^ expected one of `(`, `::`, `=>`, or `=`
error: aborting due to 9 previous errors; 1 warning emitted
Some errors have detailed explanations: E0537, E0539.
For more information about an error, try `rustc --explain E0537`.