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

ices/96525.sh: fixed with errors #1228

Merged
merged 1 commit into from
Apr 29, 2022
Merged

ices/96525.sh: fixed with errors #1228

merged 1 commit into from
Apr 29, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#96525

#!/bin/sh

rustc --edition=2021 - << EOF

struct Struct<'a>(&'a str);

async fn foo() -> Struct {
    todo!()
}

fn main() {
    foo();
}

EOF
=== stdout ===
=== stderr ===
error[E0106]: missing lifetime specifier
 --> <anon>:4:19
  |
4 | async fn foo() -> Struct {
  |                   ^^^^^^ expected named lifetime parameter
  |
  = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
help: consider using the `'static` lifetime
  |
4 | async fn foo() -> Struct<'static> {
  |                   ~~~~~~~~~~~~~~~

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0106]: missing lifetime specifier
 --> <anon>:4:19
  |
4 | async fn foo() -> Struct {
  |                   ^^^^^^ expected named lifetime parameter
  |
  = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
help: consider using the `'static` lifetime
  |
4 | async fn foo() -> Struct<'static> {
  |                   ~~~~~~~~~~~~~~~

error: aborting due to previous error

For more information about this error, try `rustc --explain E0106`.
==============
@Alexendoo Alexendoo merged commit 2ed76bf into master Apr 29, 2022
@Alexendoo Alexendoo deleted the autofix/ices/96525.sh branch April 29, 2022 12:43
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