Skip to content

request handler panicked: failed to unify type owners #22659

Description

@illusory0x0
rust-analyzer 1.91.1 (ed61e7d 2025-11-07)
rustc 1.91.1 (ed61e7d7e 2025-11-07)

Name: rust-analyzer
Id: rust-lang.rust-analyzer
Description: Rust language support for Visual Studio Code
Version: 0.3.2946
Publisher: The Rust Programming Language 
#[derive(Clone, Copy)]
struct bits {
    inner: u64,
}


// change static to const, rust-analyzer fail 
const  GC_TAG: u64 = 0x8888_8888_0000_0000;
// ^^^^

fn foo() -> bits {
    let x = 10;
    x
        
    
}

fn main() {
}

rust-analyzer-bugs-2026-06-29_04.19.58.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions