rust/src/test/ui/rfc-2632-const-trait-impl/impl-with-default-fn.stderr

11 lines
225 B
Plaintext
Raw Normal View History

error: const trait implementations may not use default functions
--> $DIR/impl-with-default-fn.rs:15:1
|
LL | / impl const Tr for S {
LL | | fn req(&self) {}
LL | | }
| |_^
error: aborting due to previous error