aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unsupported-literal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsupported-literal.rs')
-rw-r--r--tests/ui/unsupported-literal.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/ui/unsupported-literal.rs b/tests/ui/unsupported-literal.rs
index 6538971..7a9c490 100644
--- a/tests/ui/unsupported-literal.rs
+++ b/tests/ui/unsupported-literal.rs
@@ -1,7 +1,21 @@
use paste::paste;
paste! {
- fn [<1e+100>]() {}
+ 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() {}