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 #548

Merged
merged 1 commit into from
Nov 16, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#78442

#!/bin/bash

rustc -Z mir-opt-level=2 - << 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 ===
==============
@Alexendoo Alexendoo merged commit 6daf502 into master Nov 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/78442.sh branch November 16, 2020 15:40
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