]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-55394.rs
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / issue-55394.rs
1 struct Bar;
2
3 struct Foo<'s> {
4     bar: &'s mut Bar,
5 }
6
7 impl Foo<'_> {
8     fn new(bar: &mut Bar) -> Self {
9         Foo { bar } //~ERROR
10     }
11 }
12
13 fn main() { }