E0308
for Unit as Associated Type in a function that returns the Associated Type.
#16987
Labels
C-bug
Category: bug
What I saw:
What I expected: Nothing
Why did I expect that: The program compiles. The trait has associated type Result, which is set to unit /
()
.rust-analyzer version: rust-analyzer version: 0.4.1904-standalone (f5a9250 2024-03-29)
rustc version: rustc 1.79.0-nightly (1388d7a06 2024-03-20)
editor or extension: VSCode / v0.4.1904 (pre-release)
relevant settings: ?
repository link (if public, optional): https://github.com/rust-lang/rust-clippy/blob/005b05f441b3082e9923e44f9dedcf416b1288e7/clippy_lints/src/unit_types/let_unit_value.rs#L114-L124
code snippet to reproduce:
The text was updated successfully, but these errors were encountered: