You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
448
448
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
449
449
450
-
error: `cfg` predicate key must be an identifier
451
-
--> $DIR/path-kw-as-cfg-pred.rs:14:14
450
+
error[E0539]: malformed `cfg` macro input
451
+
--> $DIR/path-kw-as-cfg-pred.rs:14:9
452
452
|
453
453
LL | cfg!($crate);
454
-
| ^^^^^^
454
+
| ^^^^^------^
455
+
| | |
456
+
| | expected a valid identifier here
457
+
| help: must be of the form: `cfg(predicate)`
455
458
...
456
459
LL | foo!();
457
460
| ------ in this macro invocation
458
461
|
459
-
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
462
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
463
+
= note: this error originates in the macro `cfg` which comes from the expansion of the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
460
464
461
-
error: `cfg` predicate key must be an identifier
462
-
--> $DIR/path-kw-as-cfg-pred.rs:65:10
465
+
error[E0539]: malformed `cfg` macro input
466
+
--> $DIR/path-kw-as-cfg-pred.rs:65:5
463
467
|
464
468
LL | cfg!(crate);
465
-
| ^^^^^
469
+
| ^^^^^-----^
470
+
| | |
471
+
| | expected a valid identifier here
472
+
| help: must be of the form: `cfg(predicate)`
473
+
|
474
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
466
475
467
-
error: `cfg` predicate key must be an identifier
468
-
--> $DIR/path-kw-as-cfg-pred.rs:66:10
476
+
error[E0539]: malformed `cfg` macro input
477
+
--> $DIR/path-kw-as-cfg-pred.rs:66:5
469
478
|
470
479
LL | cfg!(super);
471
-
| ^^^^^
480
+
| ^^^^^-----^
481
+
| | |
482
+
| | expected a valid identifier here
483
+
| help: must be of the form: `cfg(predicate)`
484
+
|
485
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
472
486
473
-
error: `cfg` predicate key must be an identifier
474
-
--> $DIR/path-kw-as-cfg-pred.rs:67:10
487
+
error[E0539]: malformed `cfg` macro input
488
+
--> $DIR/path-kw-as-cfg-pred.rs:67:5
475
489
|
476
490
LL | cfg!(self);
477
-
| ^^^^
491
+
| ^^^^^----^
492
+
| | |
493
+
| | expected a valid identifier here
494
+
| help: must be of the form: `cfg(predicate)`
495
+
|
496
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
478
497
479
-
error: `cfg` predicate key must be an identifier
480
-
--> $DIR/path-kw-as-cfg-pred.rs:68:10
498
+
error[E0539]: malformed `cfg` macro input
499
+
--> $DIR/path-kw-as-cfg-pred.rs:68:5
481
500
|
482
501
LL | cfg!(Self);
483
-
| ^^^^
502
+
| ^^^^^----^
503
+
| | |
504
+
| | expected a valid identifier here
505
+
| help: must be of the form: `cfg(predicate)`
506
+
|
507
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
484
508
485
-
error: `cfg` predicate key must be an identifier
486
-
--> $DIR/path-kw-as-cfg-pred.rs:70:10
509
+
error[E0539]: malformed `cfg` macro input
510
+
--> $DIR/path-kw-as-cfg-pred.rs:70:5
487
511
|
488
512
LL | cfg!(r#crate);
489
-
| ^^^^^^^
513
+
| ^^^^^-------^
514
+
| | |
515
+
| | expected a valid identifier here
516
+
| help: must be of the form: `cfg(predicate)`
517
+
|
518
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
490
519
491
-
error: `cfg` predicate key must be an identifier
492
-
--> $DIR/path-kw-as-cfg-pred.rs:72:10
520
+
error[E0539]: malformed `cfg` macro input
521
+
--> $DIR/path-kw-as-cfg-pred.rs:72:5
493
522
|
494
523
LL | cfg!(r#super);
495
-
| ^^^^^^^
524
+
| ^^^^^-------^
525
+
| | |
526
+
| | expected a valid identifier here
527
+
| help: must be of the form: `cfg(predicate)`
528
+
|
529
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
496
530
497
-
error: `cfg` predicate key must be an identifier
498
-
--> $DIR/path-kw-as-cfg-pred.rs:74:10
531
+
error[E0539]: malformed `cfg` macro input
532
+
--> $DIR/path-kw-as-cfg-pred.rs:74:5
499
533
|
500
534
LL | cfg!(r#self);
501
-
| ^^^^^^
535
+
| ^^^^^------^
536
+
| | |
537
+
| | expected a valid identifier here
538
+
| help: must be of the form: `cfg(predicate)`
539
+
|
540
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
502
541
503
-
error: `cfg` predicate key must be an identifier
504
-
--> $DIR/path-kw-as-cfg-pred.rs:76:10
542
+
error[E0539]: malformed `cfg` macro input
543
+
--> $DIR/path-kw-as-cfg-pred.rs:76:5
505
544
|
506
545
LL | cfg!(r#Self);
507
-
| ^^^^^^
546
+
| ^^^^^------^
547
+
| | |
548
+
| | expected a valid identifier here
549
+
| help: must be of the form: `cfg(predicate)`
550
+
|
551
+
= note: for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute>
508
552
509
553
error: expected identifier, found keyword `struct`
0 commit comments