Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prettify E0379 #35404

Closed
KiChjang opened this issue Aug 5, 2016 · 1 comment
Closed

Prettify E0379 #35404

KiChjang opened this issue Aug 5, 2016 · 1 comment

Comments

@KiChjang
Copy link
Member

KiChjang commented Aug 5, 2016

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
@KiChjang
Copy link
Member Author

KiChjang commented Aug 6, 2016

I'm taking this.

jseyfried added a commit to jseyfried/rust that referenced this issue Aug 28, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant