rust/tests/ui/rfcs/rfc-2632-const-trait-impl/specialization/default-keyword.stderr
Esteban Küber 860c8cdeaf Differentiate between methods and associated functions
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.
2024-08-10 00:54:16 +00:00

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`.