Files
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/specialization/default-keyword.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
405 B
Plaintext
Raw Normal View History

error[E0049]: associated function `foo` has 1 const parameter but its trait declaration has 0 const parameters
2024-06-25 08:36:40 +00:00
--> $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`.