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

ices/93647-1.sh: fixed with errors#1110

Merged
Alexendoo merged 1 commit intomasterfrom
autofix/ices/93647-1.sh
Feb 7, 2022
Merged

ices/93647-1.sh: fixed with errors#1110
Alexendoo merged 1 commit intomasterfrom
autofix/ices/93647-1.sh

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 7, 2022

Issue: rust-lang/rust#93647

rustc --edition 2021 - 2>&1 << EOF


struct X<const N: usize = {
    async move {}
}>;

pub fn main() {}

EOF
=== stdout ===
error[E0308]: mismatched types
  --> <anon>:4:5
   |
4  |     async move {}
   |     ^^^^^^^^^^^^^ expected `usize`, found opaque type
   |
   = note:     expected type `usize`
           found opaque type `impl Future<Output = [async output]>`

error: aborting due to previous error

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

=== stdout ===
error[E0308]: mismatched types
  --> <anon>:4:5
   |
4  |     async move {}
   |     ^^^^^^^^^^^^^ expected `usize`, found opaque type
   |
   = note:     expected type `usize`
           found opaque type `impl Future<Output = [async output]>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
=== stderr ===
==============
@Alexendoo Alexendoo merged commit 110f01f into master Feb 7, 2022
@Alexendoo Alexendoo deleted the autofix/ices/93647-1.sh branch February 7, 2022 12:39
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