blob: deb1034525edb6622bb754018c849764ef4db19d [file] [log] [blame]
#![feature(nll)]
struct Bar;
struct Foo<'s> {
bar: &'s mut Bar,
}
impl Foo<'_> {
fn new(bar: &mut Bar) -> Self {
Foo { bar } //~ERROR lifetime may not live long enough
}
}
fn main() { }