1 #### Note: this error code is no longer emitted by the compiler.
3 In-band lifetimes were mixed with explicit lifetime binders.
5 Erroneous code example:
7 ```ignore (feature got removed)
8 #![feature(in_band_lifetimes)]
10 fn foo<'a>(x: &'a u32, y: &'b u32) {} // error!
12 struct Foo<'a> { x: &'a u32 }
15 fn bar<'b>(x: &'a u32, y: &'b u32, z: &'c u32) {} // error!
18 impl<'b> Foo<'a> { // error!
23 In-band lifetimes cannot be mixed with explicit lifetime binders.
27 fn foo<'a, 'b>(x: &'a u32, y: &'b u32) {} // ok!
29 struct Foo<'a> { x: &'a u32 }
32 fn bar<'b,'c>(x: &'a u32, y: &'b u32, z: &'c u32) {} // ok!
35 impl<'a> Foo<'a> { // ok!