The error message shows the code that matters.
error: literal in `cfg` predicate value must be a string
--> src/lib.rs:L:11
|
L | #[cfg(X = b"a")]
|
It should probably suggest removing the b. Likewise if using single quotes, it should suggest using double quotes. Both should also be machine applicable. Raw strings are allowed, so nothing needs to be done with them.