Skip to content

E0122: clarify wording #43176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 11, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/librustc_typeck/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1611,8 +1611,8 @@ static BAR: _ = "test"; // error, explicitly write out the type instead
"##,

E0122: r##"
An attempt was made to add a generic constraint to a type alias. While Rust will
allow this with a warning, it will not currently enforce the constraint.
An attempt was made to add a generic constraint to a type alias. This constraint is
entirely ignored. For backwards compatibility, Rust still allows this with a warning.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[00:12:30] error: description for error code E0122 contains a line longer than 80 characters.
[00:12:30] if you're inserting a long URL use the footnote style to bypass this check.
[00:12:30]     --> /checkout/src/librustc_typeck/diagnostics.rs:13:1
[00:12:30]      |
[00:12:30] 13   | / register_long_diagnostics! {
[00:12:30] 14   | |
[00:12:30] 15   | | E0023: r##"
[00:12:30] 16   | | A pattern used to match against an enum variant must provide a sub-pattern for
[00:12:30] ...    |
[00:12:30] 4680 | |
[00:12:30] 4681 | | }
[00:12:30]      | |_^
[00:12:30]      |
[00:12:30]      = note: this error originates in a macro outside of the current crate
[00:12:30] 
[00:12:30] error: aborting due to previous error(s)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops did not know about this -- will fix.

Consider the example below:

```
Expand Down