-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Poor error message with associated constrained trait type #57663
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
A more simple example with the same "not so great" error message: This code: trait Bar {}
trait Foo {
type Assoc: Bar;
}
impl Foo for () {
type Assoc = bool;
} Leads to (stable 1.32 and nightly 1.34):
The error is that
|
Point at associated type for some obligations Partially address #57663.
With #65288, the case brought up in the last comment will look like this:
and the original report like this:
|
Thanks a bunch! :) |
…omatsakis Point at associated type for some obligations Partially address rust-lang#57663.
Point at associated type for some obligations Partially address #57663.
Point at where clauses where the associated item was restricted CC rust-lang#57663. r? @nikomatsakis
Point at where clauses where the associated item was restricted CC rust-lang#57663. r? @nikomatsakis
Point at where clauses where the associated item was restricted CC rust-lang#57663. r? @nikomatsakis
On current stable (1.52.1) it looks like this:
therefore I think this can be closed. Open it up again if you like to :) |
@hellow554 because we can always improve things, #85799 :)
vs the current
|
Uh oh!
There was an error while loading. Please reload this page.
(Playground)
Errors:
I don't like the error message, I would like to see something similar to this
The text was updated successfully, but these errors were encountered: