rust/src/test/ui/nll/issue-55394.rs
2018-12-25 21:08:33 -07:00

16 lines
210 B
Rust

#![feature(nll)]
struct Bar;
struct Foo<'s> {
bar: &'s mut Bar,
}
impl Foo<'_> {
fn new(bar: &mut Bar) -> Self {
Foo { bar } //~ ERROR unsatisfied lifetime constraints
}
}
fn main() { }