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

ices/113272.rs: fixed with errors #1697

Merged
merged 1 commit into from
Oct 25, 2023
Merged

ices/113272.rs: fixed with errors #1697

merged 1 commit into from
Oct 25, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#113272

trait Trait {
    type RefTarget;
}

impl Trait for () where Missing: Trait {}

struct Other {
    data: <() as Trait>::RefTarget,
}

fn main() {
    unsafe {
        std::mem::transmute::<Option<()>, Option<&Other>>(None);
    }
}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `Missing` in this scope
 --> /home/runner/work/glacier/glacier/ices/113272.rs:5:25
  |
5 | impl Trait for () where Missing: Trait {}
  |                         ^^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.
==============

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `Missing` in this scope
 --> /home/runner/work/glacier/glacier/ices/113272.rs:5:25
  |
5 | impl Trait for () where Missing: Trait {}
  |                         ^^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.
==============
@JohnTitor JohnTitor merged commit e2ee870 into master Oct 25, 2023
@JohnTitor JohnTitor deleted the autofix/ices/113272.rs branch October 25, 2023 14:34
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