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

ices/75883.rs: fixed with errors #671

Merged
merged 1 commit into from
Feb 28, 2021
Merged

ices/75883.rs: fixed with errors #671

merged 1 commit into from
Feb 28, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#75883

pub struct UI {}

impl UI {
    pub fn run() -> Result<_> {
        let mut ui = UI {};
        ui.interact();

        unimplemented!();
    }

    pub fn interact(&mut self) -> Result<_> {
        unimplemented!();
    }
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0107]: this enum takes 2 type arguments but only 1 type argument was supplied
   --> /home/runner/work/glacier/glacier/ices/75883.rs:4:21
    |
4   |     pub fn run() -> Result<_> {
    |                     ^^^^^^ - supplied 1 type argument
    |                     |
    |                     expected 2 type arguments
    |
note: enum defined here, with 2 type parameters: `T`, `E`
help: add missing type argument
    |
4   |     pub fn run() -> Result<_, E> {
    |                             ^^^

error[E0107]: this enum takes 2 type arguments but only 1 type argument was supplied
   --> /home/runner/work/glacier/glacier/ices/75883.rs:11:35
    |
11  |     pub fn interact(&mut self) -> Result<_> {
    |                                   ^^^^^^ - supplied 1 type argument
    |                                   |
    |                                   expected 2 type arguments
    |
note: enum defined here, with 2 type parameters: `T`, `E`
help: add missing type argument
    |
11  |     pub fn interact(&mut self) -> Result<_, E> {
    |                                           ^^^

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
  --> /home/runner/work/glacier/glacier/ices/75883.rs:11:42
   |
11 |     pub fn interact(&mut self) -> Result<_> {
   |                                          ^ not allowed in type signatures

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/75883.rs:4:28
  |
4 |     pub fn run() -> Result<_> {
  |                            ^ not allowed in type signatures

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error[E0107]: this enum takes 2 type arguments but only 1 type argument was supplied
   --> /home/runner/work/glacier/glacier/ices/75883.rs:4:21
    |
4   |     pub fn run() -> Result<_> {
    |                     ^^^^^^ - supplied 1 type argument
    |                     |
    |                     expected 2 type arguments
    |
note: enum defined here, with 2 type parameters: `T`, `E`
help: add missing type argument
    |
4   |     pub fn run() -> Result<_, E> {
    |                             ^^^

error[E0107]: this enum takes 2 type arguments but only 1 type argument was supplied
   --> /home/runner/work/glacier/glacier/ices/75883.rs:11:35
    |
11  |     pub fn interact(&mut self) -> Result<_> {
    |                                   ^^^^^^ - supplied 1 type argument
    |                                   |
    |                                   expected 2 type arguments
    |
note: enum defined here, with 2 type parameters: `T`, `E`
help: add missing type argument
    |
11  |     pub fn interact(&mut self) -> Result<_, E> {
    |                                           ^^^

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
  --> /home/runner/work/glacier/glacier/ices/75883.rs:11:42
   |
11 |     pub fn interact(&mut self) -> Result<_> {
   |                                          ^ not allowed in type signatures

error[E0121]: the type placeholder `_` is not allowed within types on item signatures
 --> /home/runner/work/glacier/glacier/ices/75883.rs:4:28
  |
4 |     pub fn run() -> Result<_> {
  |                            ^ not allowed in type signatures

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0107, E0121.
For more information about an error, try `rustc --explain E0107`.
==============
@JohnTitor JohnTitor merged commit 85235fd into master Feb 28, 2021
@JohnTitor JohnTitor deleted the autofix/ices/75883.rs branch February 28, 2021 12:34
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants