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
471 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
2024-01-02 00:26:50 +01:00
error[E0379]: functions in trait impls cannot be declared const
--> $DIR/trait-fn-const.rs:10:5
|
LL | const fn fun() {}
2024-01-02 00:26:50 +01:00
| ^^^^^ functions in trait impls cannot be const
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0379`.