mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
16 lines
190 B
Rust
16 lines
190 B
Rust
// 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());
|
|
}
|