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

ices/100143.sh: fixed with no errors #1378

Merged
merged 1 commit into from
Aug 10, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#100143

#!/bin/bash

cat > out.rs <<'EOF'

// struct Peekable<I: Iterator>
use std::iter::Peekable;

pub struct Span<F: Fn(&i32)> {
    inner: Peekable<ConditionalIterator<F>>,
}

struct ConditionalIterator<F> {
    f: F,
}

impl<F: Fn(&i32)> Iterator for ConditionalIterator<F> {
    type Item = ();

    fn next(&mut self) -> Option<Self::Item> {
        todo!()
    }
}

EOF

rustdoc --edition=2021 out.rs

=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit c3ec398 into master Aug 10, 2022
@JohnTitor JohnTitor deleted the autofix/ices/100143.sh branch August 10, 2022 08:18
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