You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation, feature Win32_Foundation is required for ReplaceFileW. That is apparently not enough. The Win32_Storage_FileSystem feature is also required.
Crate manifest
[package]
name = "bug_001"version = "0.1.0"edition = "2021"
[dependencies]
windows = { version = "0.52.0", features = ["Win32_Foundation"] }
Crate code
use windows::Win32::Storage::FileSystem::ReplaceFileW;fnmain(){println!("Hello, world!");}
Error
error[E0433]: failed to resolve: could not find `Storage` in `Win32`
--> src\main.rs:1:21
|
1 | use windows::Win32::Storage::FileSystem::ReplaceFileW;
| ^^^^^^^ could not find `Storage` in `Win32`
The text was updated successfully, but these errors were encountered:
Summary
According to the documentation, feature
Win32_Foundation
is required forReplaceFileW
. That is apparently not enough. TheWin32_Storage_FileSystem
feature is also required.Crate manifest
Crate code
Error
The text was updated successfully, but these errors were encountered: