summaryrefslogtreecommitdiffstats
path: root/src/test/ui/span/transitive-dep-span.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/span/transitive-dep-span.rs')
-rw-r--r--src/test/ui/span/transitive-dep-span.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/span/transitive-dep-span.rs b/src/test/ui/span/transitive-dep-span.rs
new file mode 100644
index 000000000..2d46f74ad
--- /dev/null
+++ b/src/test/ui/span/transitive-dep-span.rs
@@ -0,0 +1,15 @@
+// Tests that we properly serialize/deserialize spans from transitive dependencies
+// (e.g. imported SourceFiles)
+//
+// The order of these next lines is important, since we need
+// transitive_dep_two.rs to be able to reference transitive_dep_three.rs
+//
+// aux-build: transitive_dep_three.rs
+// aux-build: transitive_dep_two.rs
+// compile-flags: -Z macro-backtrace
+
+extern crate transitive_dep_two;
+
+transitive_dep_two::parse_error!(); //~ ERROR expected one of
+
+fn main() {}