1 // Test range syntax - borrow errors.
2 #![feature(rustc_attrs)]
3 pub fn main() { #![rustc_error] // rust-lang/rust#49855
9 //~^^ ERROR `a` does not live long enough
10 //~| ERROR `b` does not live long enough
14 trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } }
15 impl<T> Fake for T { }