Skip to content

thread 'rustc' panicked at 'const fn has no result expression', ../src/libcore/option.rs:699 #34281

New issue

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

Closed
tupshin opened this issue Jun 15, 2016 · 2 comments

Comments

@tupshin
Copy link

tupshin commented Jun 15, 2016

Very easy to reproduce this error with rustc 1.11.0-nightly (ab0b874 2016-06-13)

Play link above. Entire code below:

`#![feature(const_fn)]

const fn test_const() -> bool {}

fn main() {
test_const();
}`

@oli-obk
Copy link
Contributor

oli-obk commented Jun 15, 2016

duplicate of #33031

@Mark-Simulacrum
Copy link
Member

Closing as duplicate (and #33031 is also closed now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants