mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-20 11:59:54 +00:00
16 lines
192 B
Rust
16 lines
192 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());
|
|
}
|