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

ices/83479.rs: fixed with errors #996

Merged
merged 1 commit into from Oct 19, 2021
Merged

ices/83479.rs: fixed with errors #996

merged 1 commit into from Oct 19, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83479

type PairCoupledTypes: Trait<
    [u32; {
        static FOO: usize;
    }],
> = impl Trait<
    [u32; {
        static FOO: usize;
    }],
>;
=== stdout ===
=== stderr ===
error: bounds on `type`s in this context have no effect
 --> /home/runner/work/glacier/glacier/ices/83479.rs:1:24
  |
1 |   type PairCoupledTypes: Trait<
  |  ________________________^
2 | |     [u32; {
3 | |         static FOO: usize;
4 | |     }],
5 | | > = impl Trait<
  | |_^

error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83479.rs:3:9
  |
3 |         static FOO: usize;
  |         ^^^^^^^^^^^^^^^^^-
  |                          |
  |                          help: provide a definition for the static: `= <expr>;`

error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83479.rs:7:9
  |
7 |         static FOO: usize;
  |         ^^^^^^^^^^^^^^^^^-
  |                          |
  |                          help: provide a definition for the static: `= <expr>;`

error[E0405]: cannot find trait `Trait` in this scope
 --> /home/runner/work/glacier/glacier/ices/83479.rs:1:24
  |
1 | type PairCoupledTypes: Trait<
  |                        ^^^^^ not found in this scope

error[E0405]: cannot find trait `Trait` in this scope
 --> /home/runner/work/glacier/glacier/ices/83479.rs:5:10
  |
5 | > = impl Trait<
  |          ^^^^^ not found in this scope

error[E0658]: `impl Trait` in type aliases is unstable
 --> /home/runner/work/glacier/glacier/ices/83479.rs:5:5
  |
5 |   > = impl Trait<
  |  _____^
6 | |     [u32; {
7 | |         static FOO: usize;
8 | |     }],
9 | | >;
  | |_^
  |
  = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
  = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `83479`
 --> /home/runner/work/glacier/glacier/ices/83479.rs:1:1
  |
1 | / type PairCoupledTypes: Trait<
2 | |     [u32; {
3 | |         static FOO: usize;
4 | |     }],
... |
8 | |     }],
9 | | >;
  | |__^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83479.rs`

error: aborting due to 7 previous errors

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

=== stdout ===
=== stderr ===
error: bounds on `type`s in this context have no effect
 --> /home/runner/work/glacier/glacier/ices/83479.rs:1:24
  |
1 |   type PairCoupledTypes: Trait<
  |  ________________________^
2 | |     [u32; {
3 | |         static FOO: usize;
4 | |     }],
5 | | > = impl Trait<
  | |_^

error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83479.rs:3:9
  |
3 |         static FOO: usize;
  |         ^^^^^^^^^^^^^^^^^-
  |                          |
  |                          help: provide a definition for the static: `= <expr>;`

error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83479.rs:7:9
  |
7 |         static FOO: usize;
  |         ^^^^^^^^^^^^^^^^^-
  |                          |
  |                          help: provide a definition for the static: `= <expr>;`

error[E0405]: cannot find trait `Trait` in this scope
 --> /home/runner/work/glacier/glacier/ices/83479.rs:1:24
  |
1 | type PairCoupledTypes: Trait<
  |                        ^^^^^ not found in this scope

error[E0405]: cannot find trait `Trait` in this scope
 --> /home/runner/work/glacier/glacier/ices/83479.rs:5:10
  |
5 | > = impl Trait<
  |          ^^^^^ not found in this scope

error[E0658]: `impl Trait` in type aliases is unstable
 --> /home/runner/work/glacier/glacier/ices/83479.rs:5:5
  |
5 |   > = impl Trait<
  |  _____^
6 | |     [u32; {
7 | |         static FOO: usize;
8 | |     }],
9 | | >;
  | |_^
  |
  = note: see issue #63063 <rust-lang/rust#63063> for more information
  = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `83479`
 --> /home/runner/work/glacier/glacier/ices/83479.rs:1:1
  |
1 | / type PairCoupledTypes: Trait<
2 | |     [u32; {
3 | |         static FOO: usize;
4 | |     }],
... |
8 | |     }],
9 | | >;
  | |__^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83479.rs`

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0405, E0601, E0658.
For more information about an error, try `rustc --explain E0405`.
==============
@Alexendoo Alexendoo merged commit 943d50a into master Oct 19, 2021
@Alexendoo Alexendoo deleted the autofix/ices/83479.rs branch October 19, 2021 12:34
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.

None yet

2 participants