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

ices/64755.rs: fixed with errors #236

Merged
merged 1 commit into from
Dec 23, 2019
Merged

ices/64755.rs: fixed with errors #236

merged 1 commit into from
Dec 23, 2019

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#64755

struct Foo;

trait MyTrait {
    type Item<T>;
}

impl MyTrait for Foo {
    type Item<T> = T;
}
=== stdout ===
=== stderr ===
error[E0658]: generic associated types are unstable
 --> /home/runner/work/glacier/glacier/ices/64755.rs:4:5
  |
4 |     type Item<T>;
  |     ^^^^^^^^^^^^^
  |
  = note: for more information, see https://github.com/rust-lang/rust/issues/44265
  = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable

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

error[E0601]: `main` function not found in crate `64755`
 --> /home/runner/work/glacier/glacier/ices/64755.rs:1:1
  |
1 | / struct Foo;
2 | |
3 | | trait MyTrait {
4 | |     type Item<T>;
... |
8 | |     type Item<T> = T;
9 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/64755.rs`

error: type-generic associated types are not yet implemented
 --> /home/runner/work/glacier/glacier/ices/64755.rs:4:5
  |
4 |     type Item<T>;
  |     ^^^^^^^^^^^^^
  |
  = note: for more information, see https://github.com/rust-lang/rust/issues/44265

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error[E0658]: generic associated types are unstable
 --> /home/runner/work/glacier/glacier/ices/64755.rs:4:5
  |
4 |     type Item<T>;
  |     ^^^^^^^^^^^^^
  |
  = note: for more information, see rust-lang/rust#44265
  = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable

error[E0658]: generic associated types are unstable
 --> /home/runner/work/glacier/glacier/ices/64755.rs:8:5
  |
8 |     type Item<T> = T;
  |     ^^^^^^^^^^^^^^^^^
  |
  = note: for more information, see rust-lang/rust#44265
  = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `64755`
 --> /home/runner/work/glacier/glacier/ices/64755.rs:1:1
  |
1 | / struct Foo;
2 | |
3 | | trait MyTrait {
4 | |     type Item<T>;
... |
8 | |     type Item<T> = T;
9 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/64755.rs`

error: type-generic associated types are not yet implemented
 --> /home/runner/work/glacier/glacier/ices/64755.rs:4:5
  |
4 |     type Item<T>;
  |     ^^^^^^^^^^^^^
  |
  = note: for more information, see rust-lang/rust#44265

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0601, E0658.
For more information about an error, try `rustc --explain E0601`.
==============
@JohnTitor JohnTitor merged commit ffac560 into master Dec 23, 2019
@JohnTitor JohnTitor deleted the autofix/ices/64755.rs branch December 23, 2019 12:09
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