summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-07-08 17:47:27 +1200
committerNick Cameron <ncameron@mozilla.com>2015-07-09 12:24:39 +1200
commitf28f79b79615fc77e65ec42c4e2a3960659150c9 (patch)
tree1d41a9c1b8b3fcd6d73e8d63448e0bc8ff1aab0b /src/test
parent374af4aea7878127ca52cbc271fb1237b4afe223 (diff)
downloadrust-f28f79b79615fc77e65ec42c4e2a3960659150c9.tar.gz
rust-f28f79b79615fc77e65ec42c4e2a3960659150c9.zip
Fix a span bug for qualified paths
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-make/save-analysis/foo.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/run-make/save-analysis/foo.rs b/src/test/run-make/save-analysis/foo.rs
index 07b99dff4e0..4981ea475d3 100644
--- a/src/test/run-make/save-analysis/foo.rs
+++ b/src/test/run-make/save-analysis/foo.rs
@@ -364,3 +364,18 @@ impl<'a> Pattern<'a> for CharEqPattern {
 }
 
 struct CharSearcher<'a>(<CharEqPattern as Pattern<'a>>::Searcher);
+
+pub trait Error {
+}
+
+impl Error + 'static {
+    pub fn is<T: Error + 'static>(&self) -> bool {
+        panic!()
+    }
+}
+
+impl Error + 'static + Send {
+    pub fn is<T: Error + 'static>(&self) -> bool {
+        <Error + 'static>::is::<T>(self)
+    }
+}