rust/tests/ui/consts/const-fn-mismatch.stderr

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

13 lines
358 B
Plaintext
Raw Normal View History

2024-01-02 00:26:50 +01:00
error[E0379]: functions in trait impls cannot be declared const
--> $DIR/const-fn-mismatch.rs:11:5
|
LL | const fn f() -> u32 {
2024-01-02 00:57:30 +01:00
| ^^^^^-
| |
| functions in trait impls cannot be const
| help: remove the `const`
error: aborting due to 1 previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0379`.