1
0
Fork 0
firefox/third_party/rust/paste/tests/ui/unsupported-literal.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

21 lines
318 B
Rust

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() {}