blob: 00f8a21eb2fd180e685851a39977f3987116540e [file] [log] [blame]
//@ compile-flags: -Znext-solver
//@ check-pass
struct A;
impl A {
fn hi(self) {}
}
fn hello() -> Result<(A,), ()> {
Err(())
}
fn main() {
let x = hello().map(|(x,)| x.hi());
}