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

ices/77911.sh: fixed with no errors #510

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#77911

#!/bin/bash

rustc -Z mir-opt-level=2 - << EOF
use std::fs::File;
use std::io::{BufRead, BufReader};

fn file_lines() -> impl Iterator<Item = String> {
    BufReader::new(File::open("data.txt").unwrap())
        .lines()
        .map(Result::unwrap)
}

fn main() {
    for _ in file_lines() {}
}

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

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit e609cd7 into master Oct 19, 2020
@JohnTitor JohnTitor deleted the autofix/ices/77911.sh branch October 19, 2020 12:32
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