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

ices/106079.sh: fixed with no errors #1496

Merged
merged 1 commit into from
Jan 21, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#106079

#!/bin/bash

cat > out.rs << EOF
trait X {
    type Y<'a>;
}

const _: () = {
    fn f2<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
    //~^ ERROR this associated type takes 1 lifetime argument but 0 lifetime arguments
    //~| ERROR this associated type takes 0 generic arguments but 1 generic argument
};

fn main() {}
EOF

rustdoc out.rs
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
@JohnTitor JohnTitor merged commit b311016 into master Jan 21, 2023
@JohnTitor JohnTitor deleted the autofix/ices/106079.sh branch January 21, 2023 03:53
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