Skip to content

Reachable panic in check_expr_handle_mut_arg #2184

@Marsman1996

Description

@Marsman1996

PoC

use vstd::prelude::*;
verus!{
proof fn p(){
    let _f = |x:int| -> int { return x; };
}
fn main(){}
}

Panic Log

(_, None) => panic!("internal error: missing return type"),

thread 'rustc' (42) panicked at vir/src/modes.rs:2891:30:
internal error: missing return type
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Env

Verus Version: 2026.02.11 c780c07

Playground Link

https://play.verus-lang.org/?version=stable&mode=basic&edition=2021&gist=82beda3c9809ccf0d59539c8b381193b

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