blob: 2b49cd33ba09bbd257cb0e1e087605f85fba1c5a [file] [log] [blame]
// compile-pass
// skip-codegen
#![allow(warnings)]
// Check that you are allowed to implement using elision but write
// trait without elision (a bug in this cropped up during
// bootstrapping, so this is a regression test).
pub struct SplitWhitespace<'a> {
x: &'a u8
}
pub trait UnicodeStr {
fn split_whitespace<'a>(&'a self) -> SplitWhitespace<'a>;
}
impl UnicodeStr for str {
#[inline]
fn split_whitespace(&self) -> SplitWhitespace {
unimplemented!()
}
}
fn main() { }