about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-17 05:44:29 +0000
committerbors <bors@rust-lang.org>2015-09-17 05:44:29 +0000
commit6c18dd597f409484c668d665bfd144c9c7d37f45 (patch)
tree159d447e609d3eae8664cd641f0c1c32cb38b9ec
parentd16129bca5f5c9f3a5bb66d3f757ec75ed0f9c7b (diff)
parentf5b69b3d9c6cac49e967f43dd5fb1b8aa7071080 (diff)
downloadrust-6c18dd597f409484c668d665bfd144c9c7d37f45.tar.gz
rust-6c18dd597f409484c668d665bfd144c9c7d37f45.zip
Auto merge of #28438 - apasel422:issue-22872, r=alexcrichton
The original issue was not fixed, but the test passed due to disabled debug assertions.
-rw-r--r--src/test/compile-fail/issue-22872.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/test/compile-fail/issue-22872.rs b/src/test/compile-fail/issue-22872.rs
deleted file mode 100644
index 86982284ac2..00000000000
--- a/src/test/compile-fail/issue-22872.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-trait Wrap<'b> {
-    fn foo(&'b mut self);
-}
-
-struct Wrapper<P>(P);
-
-impl<'b, P> Wrap<'b> for Wrapper<P>
-where P: Process<'b>,
-      <P as Process<'b>>::Item: Iterator {
-    fn foo(&mut self) {}
-}
-
-
-pub trait Process<'a> {
-    type Item;
-    fn bar(&'a self);
-}
-
-fn push_process<P>(process: P) where P: Process<'static> {
-    let _: Box<for<'b> Wrap<'b>> = Box::new(Wrapper(process));
-    //~^ ERROR the trait `for<'b> Process<'b>` is not implemented for the type `P` [E0277]
-    //~| ERROR the trait `for<'b> core::iter::Iterator` is not implemented for the type
-    //~| ERROR cannot infer an appropriate lifetime for lifetime parameter `'b` due to conflicting
-}
-
-fn main() {}