We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original issue #35338, PR #35364.
From: src/test/compile-fail/const-fn-mismatch.rs
Bonus: shrink the span to focus on the const part:
error[E0379]: trait fns cannot be declared const --> src/test/compile-fail/const-fn-mismatch.rs:23:5 | 23 | const fn f() -> u32 { 22 } //~ ERROR E0379 | ^^^^^ trait tns cannot be const
The text was updated successfully, but these errors were encountered:
I'm taking this.
Sorry, something went wrong.
Rollup merge of rust-lang#35480 - KiChjang:e0379-bonus, r=nikomatsakis
bd38e89
Move E0379 check from typeck to ast validation Part of rust-lang#35233. Extension of rust-lang#35338, rust-lang#35364. Fixes rust-lang#35404.
No branches or pull requests
Original issue #35338, PR #35364.
From: src/test/compile-fail/const-fn-mismatch.rs
Bonus: shrink the span to focus on the const part:
The text was updated successfully, but these errors were encountered: