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

ices/96169.sh: fixed with no errors #1336

Merged
merged 1 commit into from
Jul 10, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#96169

rustc -Zmir-opt-level=4 --emit=mir - 2>&1 << EOF

// run-rustfix
#![allow(unused)]
fn a() -> usize { 0 }
//~^ ERROR return types are denoted using `->`

fn bar(_: u32) {}

fn baz() -> *const dyn Fn(u32) { unimplemented!() }

fn foo() {
    match () {
        _ if baz() == &bar as &dyn Fn(u32) => (),
        () => (),
    }
}

fn main() {
}

EOF
=== stdout ===
/home/runner/work/glacier/glacier/ices/96169.sh: command substitution: line 1: syntax error near unexpected token `newline'
/home/runner/work/glacier/glacier/ices/96169.sh: command substitution: line 1: `->'
=== stderr ===
==============

=== stdout ===
/home/runner/work/glacier/glacier/ices/96169.sh: command substitution: line 1: syntax error near unexpected token `newline'
/home/runner/work/glacier/glacier/ices/96169.sh: command substitution: line 1: `->'
=== stderr ===
==============
@JohnTitor JohnTitor merged commit b96dae6 into master Jul 10, 2022
@JohnTitor JohnTitor deleted the autofix/ices/96169.sh branch July 10, 2022 04:07
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