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

ices/69401.rs: fixed with errors #300

Merged
merged 1 commit into from
Feb 29, 2020
Merged

ices/69401.rs: fixed with errors #300

merged 1 commit into from
Feb 29, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#69401

struct Inv<'a> {
    x: &'a u8
}
pub trait Foo {
    fn no_bound(b: Inv<(b)>);
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `b` in this scope
 --> /home/runner/work/glacier/glacier/ices/69401.rs:5:25
  |
4 | pub trait Foo {
  |              - help: you might be missing a type parameter: `<b>`
5 |     fn no_bound(b: Inv<(b)>);
  |                         ^ not found in this scope

warning: unnecessary parentheses around type
 --> /home/runner/work/glacier/glacier/ices/69401.rs:5:24
  |
5 |     fn no_bound(b: Inv<(b)>);
  |                        ^^^ help: remove these parentheses
  |
  = note: `#[warn(unused_parens)]` on by default

error[E0107]: wrong number of type arguments: expected 0, found 1
 --> /home/runner/work/glacier/glacier/ices/69401.rs:5:25
  |
5 |     fn no_bound(b: Inv<(b)>);
  |                         ^ unexpected type argument

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `b` in this scope
 --> /home/runner/work/glacier/glacier/ices/69401.rs:5:25
  |
4 | pub trait Foo {
  |              - help: you might be missing a type parameter: `<b>`
5 |     fn no_bound(b: Inv<(b)>);
  |                         ^ not found in this scope

warning: unnecessary parentheses around type
 --> /home/runner/work/glacier/glacier/ices/69401.rs:5:24
  |
5 |     fn no_bound(b: Inv<(b)>);
  |                        ^^^ help: remove these parentheses
  |
  = note: `#[warn(unused_parens)]` on by default

error[E0107]: wrong number of type arguments: expected 0, found 1
 --> /home/runner/work/glacier/glacier/ices/69401.rs:5:25
  |
5 |     fn no_bound(b: Inv<(b)>);
  |                         ^ unexpected type argument

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0107, E0412.
For more information about an error, try `rustc --explain E0107`.
==============
@JohnTitor JohnTitor merged commit 7ece325 into master Feb 29, 2020
@JohnTitor JohnTitor deleted the autofix/ices/69401.rs branch February 29, 2020 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