cheep-crator-2/vendor/paste/tests/ui/unsupported-literal.rs

22 lines
318 B
Rust
Raw Normal View History

2022-07-19 11:14:16 +00:00
use paste::paste;
paste! {
fn [<x 1e+100 z>]() {}
}
paste! {
// `xyz` is not correct. `xbyz` is certainly not correct. Maybe `x121z`
// would be justifiable but for now don't accept this.
fn [<x b'y' z>]() {}
}
paste! {
fn [<x b"y" z>]() {}
}
paste! {
fn [<x br"y" z>]() {}
}
fn main() {}