summaryrefslogtreecommitdiffstats
path: root/third_party/rust/paste/tests/ui/unsupported-literal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/paste/tests/ui/unsupported-literal.rs')
-rw-r--r--third_party/rust/paste/tests/ui/unsupported-literal.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/third_party/rust/paste/tests/ui/unsupported-literal.rs b/third_party/rust/paste/tests/ui/unsupported-literal.rs
new file mode 100644
index 0000000000..7a9c490d8c
--- /dev/null
+++ b/third_party/rust/paste/tests/ui/unsupported-literal.rs
@@ -0,0 +1,21 @@
+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() {}