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

ices/96572.rs: fixed with errors #1266

Merged
merged 1 commit into from
May 23, 2022
Merged

ices/96572.rs: fixed with errors #1266

merged 1 commit into from
May 23, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#96572

#![feature(type_alias_impl_trait)]

fn main() {
    type T = impl Copy;
    let foo: T = (1u32, 2u32);
    let (a, b): (u32, u32) = foo;
}
=== stdout ===
=== stderr ===
error: unconstrained opaque type
 --> /home/runner/work/glacier/glacier/ices/96572.rs:4:14
  |
4 |     type T = impl Copy;
  |              ^^^^^^^^^
  |
  = note: `T` must be used in combination with a concrete type within the same module

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: unconstrained opaque type
 --> /home/runner/work/glacier/glacier/ices/96572.rs:4:14
  |
4 |     type T = impl Copy;
  |              ^^^^^^^^^
  |
  = note: `T` must be used in combination with a concrete type within the same module

error: aborting due to previous error

==============
@JohnTitor JohnTitor merged commit fb6a088 into master May 23, 2022
@JohnTitor JohnTitor deleted the autofix/ices/96572.rs branch May 23, 2022 12:56
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.

None yet

2 participants