You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0323]: item `bar` is an associated const, which doesn't match its trait `<FooConstForMethod as Foo>`
--> $DIR/impl-wrong-item-for-trait.rs
|
XX | const bar: u64 = 1;
| ^^^^^^^^^^^^^^^^^^^ does not match trait
as per this review from @nikomatsakis, it would make sense to change it so that the output is (at least in this case):
error[E0323]: item `bar` is an associated const, which doesn't match its trait `Foo`
The text was updated successfully, but these errors were encountered:
Show `Trait` instead of `<Struct as Trait>` in E0323
For a given file
```
trait Foo {
fn bar(&self);
}
pub struct FooConstForMethod;
impl Foo for FooConstForMethod {
const bar: u64 = 1;
}
```
show
```
error[E0323]: item `bar` is an associated const, which doesn't match its trait `Foo`
```
instead of
```
error[E0323]: item `bar` is an associated const, which doesn't match its trait `<FooConstForMethod as Foo>`
```
Fixrust-lang#37618
Given a file
produces output
as per this review from @nikomatsakis, it would make sense to change it so that the output is (at least in this case):
The text was updated successfully, but these errors were encountered: