860c8cdeaf
Accurately refer to assoc fn without receiver as assoc fn instead of methods. Add `AssocItem::descr` method to centralize where we call methods and associated functions.
13 lines
405 B
Plaintext
13 lines
405 B
Plaintext
error[E0049]: associated function `foo` has 1 const parameter but its trait declaration has 0 const parameters
|
|
--> $DIR/default-keyword.rs:7:1
|
|
|
|
|
LL | #[const_trait]
|
|
| ^^^^^^^^^^^^^^ found 1 const parameter
|
|
LL | trait Foo {
|
|
LL | fn foo();
|
|
| - expected 0 const parameters
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0049`.
|