rust/tests/ui/macros/cfg_select.stderr
Folkert de Vries d0153f5872
update cfg_select! documentation
and make internal terminology consistent

Co-authored-by: Travis Cross <tc@traviscross.com>
2025-07-14 22:29:28 +02:00

31 lines
683 B
Text

error: expected `{`, found `1`
--> $DIR/cfg_select.rs:13:17
|
LL | true => 1
| ^ expected `{`
warning: unreachable predicate
--> $DIR/cfg_select.rs:20: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:24:1
|
LL | / cfg_select! {
LL | |
LL | | false => {}
LL | | }
| |_^
error: none of the predicates in this `cfg_select` evaluated to true
--> $DIR/cfg_select.rs:29:1
|
LL | cfg_select! {}
| ^^^^^^^^^^^^^^
error: aborting due to 3 previous errors; 1 warning emitted