--- /dev/null
+// Copyright 2017 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.
+fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
+ y.push(z);
+}
+
+fn main() { }
--- /dev/null
+error[E0623]: lifetime mismatch
+ --> src/test/ui/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs:11:10
+ |
+10 | fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
+ | --- --- these two types are declared with different lifetimes...
+11 | y.push(z);
+ | ^ ...but data from `z` flows into `y` here
+
+error: aborting due to previous error
+