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

add 6 ices #1375

Merged
merged 1 commit into from
Aug 6, 2022
Merged

Conversation

ices/100187.sh Outdated
Comment on lines 1 to 10
#!/bin/bash

rustc "-Zcrate-attr=feature(with_negative_coherence)" - <<'EOF'

#![feature(negative_impls)]

// FIXME: this should compile

trait MyPredicate<'a> {}
impl<'a, T> !MyPredicate<'a> for &T where T: 'a {}
trait MyTrait<'a> {}
impl<'a, T: MyPredicate<'a>> MyTrait<'a> for T {}
impl<'a, T> MyTrait<'a> for &'a T {}
//~^ ERROR: conflicting implementations of trait `MyTrait<'_>` for type `&_`

fn main() {}

EOF

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks like 99662

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I usually copy a preexisting .sh and fill in the new ICE, looks like I forgot the latter 🙃

Copy link
Member

@Alexendoo Alexendoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks!

Let us find out if glacier works fine with 7 digits :D

@Alexendoo Alexendoo merged commit 2ced9fb into rust-lang:master Aug 6, 2022
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