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

ices/109143.rs: fixed with errors #1541

Merged
merged 1 commit into from
Mar 20, 2023
Merged

ices/109143.rs: fixed with errors #1541

merged 1 commit into from
Mar 20, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#109143

struct Bar<const N: &(for<'a> S<'a>)>;
=== stdout ===
=== stderr ===
error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:21
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                     ^ explicit lifetime name needed here

error[E0405]: cannot find trait `S` in this scope
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:31
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                               ^ not found in this scope

error[E0601]: `main` function not found in crate `109143`
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:39
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                                       ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/109143.rs`

error[E0782]: trait objects must include the `dyn` keyword
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:23
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                       ^^^^^^^^^^^^^
  |
help: add `dyn` keyword before this trait
  |
1 | struct Bar<const N: &(dyn for<'a> S<'a>)>;
  |                       +++

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:21
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                     ^ explicit lifetime name needed here

error[E0405]: cannot find trait `S` in this scope
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:31
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                               ^ not found in this scope

error[E0601]: `main` function not found in crate `109143`
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:39
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                                       ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/109143.rs`

error[E0782]: trait objects must include the `dyn` keyword
 --> /home/runner/work/glacier/glacier/ices/109143.rs:1:23
  |
1 | struct Bar<const N: &(for<'a> S<'a>)>;
  |                       ^^^^^^^^^^^^^
  |
help: add `dyn` keyword before this trait
  |
1 | struct Bar<const N: &(dyn for<'a> S<'a>)>;
  |                       +++

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0405, E0601, E0637, E0782.
For more information about an error, try `rustc --explain E0405`.
==============
@Alexendoo Alexendoo merged commit 9a45b07 into master Mar 20, 2023
@Alexendoo Alexendoo deleted the autofix/ices/109143.rs branch March 20, 2023 17:57
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