Skip to content
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