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

ices/83499.rs: fixed with errors #707

Merged
merged 1 commit into from
Apr 3, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 3, 2021

Issue: rust-lang/rust#83499

async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
=== stdout ===
=== stderr ===
error: only foreign or `unsafe extern "C" functions may be C-variadic
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:50
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  |                                                  ^^^

error[E0658]: C-variadic functions are unstable
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:1
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #44930 <https://github.com/rust-lang/rust/issues/44930> for more information
  = help: add `#![feature(c_variadic)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `83499`
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:1
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83499.rs`

error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:55
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  |                                                       ^
  |
note: hidden type `impl Future` captures lifetime smaller than the function body
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:55
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  |                                                       ^

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0601, E0658, E0700.
For more information about an error, try `rustc --explain E0601`.
==============

=== stdout ===
=== stderr ===
error: only foreign or `unsafe extern "C" functions may be C-variadic
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:50
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  |                                                  ^^^

error[E0658]: C-variadic functions are unstable
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:1
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #44930 <rust-lang/rust#44930> for more information
  = help: add `#![feature(c_variadic)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `83499`
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:1
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83499.rs`

error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:55
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  |                                                       ^
  |
note: hidden type `impl Future` captures lifetime smaller than the function body
 --> /home/runner/work/glacier/glacier/ices/83499.rs:1:55
  |
1 | async fn multiple_named_lifetimes<'a, 'b>(_: u8, ...) {}
  |                                                       ^

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0601, E0658, E0700.
For more information about an error, try `rustc --explain E0601`.
==============
@Alexendoo Alexendoo merged commit 13fd457 into master Apr 3, 2021
@Alexendoo Alexendoo deleted the autofix/ices/83499.rs branch April 3, 2021 12:50
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