Skip to content
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

rust-analyzer only error for {integer} store to &dyn Debug #17730

Closed
A4-Tacks opened this issue Jul 28, 2024 · 1 comment
Closed

rust-analyzer only error for {integer} store to &dyn Debug #17730

A4-Tacks opened this issue Jul 28, 2024 · 1 comment
Labels
C-bug Category: bug

Comments

@A4-Tacks
Copy link

rust-analyzer version: rust-analyzer 1.80.0 (05147895 2024-07-21)

rustc version: rustc 1.80.0 (051478957 2024-07-21)

code snippet to reproduce:

use std::fmt::Debug;

fn main() {
    let x: &dyn Debug = &2;
}

cargo check 0 errors
ra: expected &dyn Debug, found &i32 (rust-analyzer E0308)

@A4-Tacks A4-Tacks added the C-bug Category: bug label Jul 28, 2024
@lnicola
Copy link
Member

lnicola commented Jul 28, 2024

Duplicate of #11847.

@lnicola lnicola closed this as completed Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants