Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/104843.sh: fixed with no errors #1704

Merged
merged 1 commit into from
Dec 24, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#104843

#!/bin/bash

rustc -O - << EOF

#![feature(let_chains)]

struct F(Box<()>);

impl F {
    fn s(&self) -> Option<&str> {
        None
    }
}

fn cex() -> Option<F> {
    None
}

fn main() {
    if false
        && let Some(ce) = cex()
        && let Some(_ce) = ce.s()
    {
    }
}

EOF
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit f9b330c into master Dec 24, 2023
@JohnTitor JohnTitor deleted the autofix/ices/104843.sh branch December 24, 2023 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants