summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/attribute-spans-preserved.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/attribute-spans-preserved.rs')
-rw-r--r--src/test/ui/proc-macro/attribute-spans-preserved.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/attribute-spans-preserved.rs b/src/test/ui/proc-macro/attribute-spans-preserved.rs
new file mode 100644
index 000000000..c01fce905
--- /dev/null
+++ b/src/test/ui/proc-macro/attribute-spans-preserved.rs
@@ -0,0 +1,10 @@
+// aux-build:attribute-spans-preserved.rs
+
+extern crate attribute_spans_preserved as foo;
+
+use foo::foo;
+
+#[ foo ( let y: u32 = "z"; ) ] //~ ERROR: mismatched types
+#[ bar { let x: u32 = "y"; } ] //~ ERROR: mismatched types
+fn main() {
+}