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

ices/78442.sh: fixed with no errors #1008

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 8, 2021

Issue: rust-lang/rust#78442

#!/bin/bash

rustc -Z inline-mir - << EOF
#![crate_type = "lib"]

// Error won't happen if "bar" is not generic
pub fn bar<P>(_baz: P) {
    hide_foo()();
}

// Error won't happen if "iterate" hasn't impl Trait or has generics
fn hide_foo() -> impl Fn() {
    foo
}

// Error won't happen if "foo" isn't used in "iterate" or has generics
fn foo() {}

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

=== stdout ===
=== stderr ===
==============
@JohnTitor
Copy link
Member

Closing in favor of #1007

@JohnTitor JohnTitor closed this Nov 8, 2021
@JohnTitor JohnTitor deleted the autofix/ices/78442.sh branch November 8, 2021 12:11
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