1
Fork 0
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/effects/trait-fn-const.stderr

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

16 lines
461 B
Text
Raw Normal View History

error[E0379]: functions in traits cannot be declared const
--> $DIR/trait-fn-const.rs:6:5
|
LL | const fn fun();
| ^^^^^ functions in traits cannot be const
error[E0379]: functions in traits cannot be declared const
--> $DIR/trait-fn-const.rs:10:5
|
LL | const fn fun() {}
| ^^^^^ functions in traits cannot be const
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0379`.