// except according to those terms.
// Test range syntax - borrow errors.
-#![feature(slicing_syntax)]
pub fn main() {
let r = {
- (&42i)..&42
+ &42is..&42
//~^ ERROR borrowed value does not live long enough
//~^^ ERROR borrowed value does not live long enough
};