Skip to content

E0194 Bonus Formatting #36057

@leikahing

Description

@leikahing
Contributor

This ticket covers the bonus portion of #35280 as part of #35233.

It takes the original error message updates and expands it to:

error[E0194]: type parameter `T` shadows another type parameter of the same name
  --> src/test/compile-fail/E0194.rs:13:5
   |
11 | trait Foo<T> {
   |           - first `T` declared here
12 |     fn do_something(&self) -> T;
13 |     fn do_something_else<T: Clone>(&self, bar: T); //~ ERROR E0194
   |                          ^ shadows another type parameter

I made this ticket in order to separate the improvement from the original issue.

Activity

added
A-diagnosticsArea: Messages for errors, warnings, and lints
on Aug 28, 2016
leikahing

leikahing commented on Aug 30, 2016

@leikahing
ContributorAuthor

I have a fix ready for this/for review but I'm waiting for PR #36056 to be merged into master before I make another PR.

added 2 commits that reference this issue on Aug 30, 2016
acf43ba
fb38911
added 2 commits that reference this issue on Aug 30, 2016
e7c306d

4 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Aatch@leikahing

      Issue actions

        E0194 Bonus Formatting · Issue #36057 · rust-lang/rust