blob: 355fc790229d0fdfd2c8a51d84e2a36adb1d57f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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());
}
|