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

ices/100187.sh: fixed with errors #1380

Merged
merged 1 commit into from
Aug 11, 2022
Merged

ices/100187.sh: fixed with errors #1380

merged 1 commit into from
Aug 11, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#100187

#!/bin/bash

rustc "-Zsave-analysis" - <<'EOF'

trait Pattern<'a> {}

async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}

EOF

=== stdout ===
=== stderr ===
error[E0670]: `async fn` is not permitted in Rust 2015
 --> <anon>:4:1
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  | ^^^^^ to use `async fn`, switch to Rust 2018 or later
  |
  = help: pass `--edition 2021` to `rustc`
  = note: for more on editions, read https://doc.rust-lang.org/edition-guide

error[E0601]: `main` function not found in crate `rust_out`
 --> <anon>:4:75
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  |                                                                           ^ consider adding a `main` function at the crate level

error[E0277]: the trait bound `(): Pattern<'b>` is not satisfied
 --> <anon>:4:73
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  |                                                                         ^^ the trait `Pattern<'b>` is not implemented for `()`

error[E0277]: the trait bound `(): Pattern<'b>` is not satisfied
 --> <anon>:4:56
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  |                                                        ^^^^^^^^^^^^^^^^ the trait `Pattern<'b>` is not implemented for `()`

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error[E0670]: `async fn` is not permitted in Rust 2015
 --> <anon>:4:1
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  | ^^^^^ to use `async fn`, switch to Rust 2018 or later
  |
  = help: pass `--edition 2021` to `rustc`
  = note: for more on editions, read https://doc.rust-lang.org/edition-guide

error[E0601]: `main` function not found in crate `rust_out`
 --> <anon>:4:75
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  |                                                                           ^ consider adding a `main` function at the crate level

error[E0277]: the trait bound `(): Pattern<'b>` is not satisfied
 --> <anon>:4:73
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  |                                                                         ^^ the trait `Pattern<'b>` is not implemented for `()`

error[E0277]: the trait bound `(): Pattern<'b>` is not satisfied
 --> <anon>:4:56
  |
4 | async fn named_trait<'a, 'b>(foo: impl Pattern<'a>) -> impl Pattern<'b> {}
  |                                                        ^^^^^^^^^^^^^^^^ the trait `Pattern<'b>` is not implemented for `()`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0277, E0601, E0670.
For more information about an error, try `rustc --explain E0277`.
==============
@JohnTitor JohnTitor merged commit cc20b46 into master Aug 11, 2022
@JohnTitor JohnTitor deleted the autofix/ices/100187.sh branch August 11, 2022 04:00
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