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

ices/111470.rs: fixed with no errors #1710

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#111470

#![allow(dead_code)]
#![allow(unused_variables)]
#![feature(type_alias_impl_trait)]

use std::fmt::Debug;
use std::marker::PhantomData;

struct Foo<T: Debug, F: FnOnce(T)> {
    f: F,
    _phantom: PhantomData<T>,
}

type ImplT = impl Debug;
type FooImpl = Foo<ImplT, impl FnOnce(ImplT)>;

fn bar() -> FooImpl {
    let x = 5i32;
    Foo::<i32, _> {
        f: |_| (),
        _phantom: PhantomData,
    }
}

fn main() {}
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit 5b53bec into master Jan 17, 2024
@JohnTitor JohnTitor deleted the autofix/ices/111470.rs branch January 17, 2024 07:28
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