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

ices/109071.rs: fixed with errors #1579

Merged
merged 1 commit into from
May 9, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 9, 2023

Issue: rust-lang/rust#109071

struct Windows<T> {}

impl<T> Windows {
    type Item = &[T];

    fn next() -> Option<Self::Item> {}
}

impl<T> Windows<T> {
    fn T() -> Option<Self::Item> {}
}
=== stdout ===
=== stderr ===
error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109071.rs:4:17
  |
4 |     type Item = &[T];
  |                 ^ explicit lifetime name needed here

error[E0601]: `main` function not found in crate `109071`
  --> /home/runner/work/glacier/glacier/ices/109071.rs:11:2
   |
11 | }
   |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/109071.rs`

error[E0107]: missing generics for struct `Windows`
 --> /home/runner/work/glacier/glacier/ices/109071.rs:3:9
  |
3 | impl<T> Windows {
  |         ^^^^^^^ expected 1 generic argument
  |
note: struct defined here, with 1 generic parameter: `T`
 --> /home/runner/work/glacier/glacier/ices/109071.rs:1:8
  |
1 | struct Windows<T> {}
  |        ^^^^^^^ -
help: add missing generic argument
  |
3 | impl<T> Windows<T> {
  |                +++

error[E0658]: inherent associated types are unstable
 --> /home/runner/work/glacier/glacier/ices/109071.rs:4:5
  |
4 |     type Item = &[T];
  |     ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
  = help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109071.rs:4:17
  |
4 |     type Item = &[T];
  |                 ^ explicit lifetime name needed here

error[E0601]: `main` function not found in crate `109071`
  --> /home/runner/work/glacier/glacier/ices/109071.rs:11:2
   |
11 | }
   |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/109071.rs`

error[E0107]: missing generics for struct `Windows`
 --> /home/runner/work/glacier/glacier/ices/109071.rs:3:9
  |
3 | impl<T> Windows {
  |         ^^^^^^^ expected 1 generic argument
  |
note: struct defined here, with 1 generic parameter: `T`
 --> /home/runner/work/glacier/glacier/ices/109071.rs:1:8
  |
1 | struct Windows<T> {}
  |        ^^^^^^^ -
help: add missing generic argument
  |
3 | impl<T> Windows<T> {
  |                +++

error[E0658]: inherent associated types are unstable
 --> /home/runner/work/glacier/glacier/ices/109071.rs:4:5
  |
4 |     type Item = &[T];
  |     ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #8995 <rust-lang/rust#8995> for more information
  = help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0107, E0601, E0637, E0658.
For more information about an error, try `rustc --explain E0107`.
==============
@JohnTitor JohnTitor merged commit bb6710b into master May 9, 2023
@JohnTitor JohnTitor deleted the autofix/ices/109071.rs branch May 9, 2023 09:18
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