Skip to content

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

Closed
@tupshin

Description

@tupshin

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();
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions