[INFO] updating cached repository gabdube/D2D1_rs_simple_example [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/gabdube/D2D1_rs_simple_example [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/gabdube/D2D1_rs_simple_example" "work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/gh/gabdube/D2D1_rs_simple_example"` [INFO] [stderr] Cloning into 'work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/gh/gabdube/D2D1_rs_simple_example'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/gabdube/D2D1_rs_simple_example" "work/ex/pr-60162/sources/try#06a150c7d11500b41499224f165e9de1de096768/gh/gabdube/D2D1_rs_simple_example"` [INFO] [stderr] Cloning into 'work/ex/pr-60162/sources/try#06a150c7d11500b41499224f165e9de1de096768/gh/gabdube/D2D1_rs_simple_example'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 1d37a4168946136d09ffeefd23073acd1ee78976 [INFO] sha for GitHub repo gabdube/D2D1_rs_simple_example: 1d37a4168946136d09ffeefd23073acd1ee78976 [INFO] validating manifest of gabdube/D2D1_rs_simple_example on toolchain master#a850a426491e14186af2250549bf41256b5938d2 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+a850a426491e14186af2250549bf41256b5938d2-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of gabdube/D2D1_rs_simple_example on toolchain try#06a150c7d11500b41499224f165e9de1de096768 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+06a150c7d11500b41499224f165e9de1de096768-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing gabdube/D2D1_rs_simple_example [INFO] finished frobbing gabdube/D2D1_rs_simple_example [INFO] frobbed toml for gabdube/D2D1_rs_simple_example written to work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/gh/gabdube/D2D1_rs_simple_example/Cargo.toml [INFO] started frobbing gabdube/D2D1_rs_simple_example [INFO] finished frobbing gabdube/D2D1_rs_simple_example [INFO] frobbed toml for gabdube/D2D1_rs_simple_example written to work/ex/pr-60162/sources/try#06a150c7d11500b41499224f165e9de1de096768/gh/gabdube/D2D1_rs_simple_example/Cargo.toml [INFO] crate gabdube/D2D1_rs_simple_example already has a lockfile, it will not be regenerated [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+a850a426491e14186af2250549bf41256b5938d2-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/crater-raid/crater/work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/gh/gabdube/D2D1_rs_simple_example/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+a850a426491e14186af2250549bf41256b5938d2-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+06a150c7d11500b41499224f165e9de1de096768-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+a850a426491e14186af2250549bf41256b5938d2-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+06a150c7d11500b41499224f165e9de1de096768-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking gabdube/D2D1_rs_simple_example against master#a850a426491e14186af2250549bf41256b5938d2 for pr-60162 [INFO] running `"docker" "create" "-v" "/mnt/crater-raid/crater/work/local/target-dirs/pr-60162/worker-7/master#a850a426491e14186af2250549bf41256b5938d2:/opt/crater/target:rw,Z" "-v" "/mnt/crater-raid/crater/work/ex/pr-60162/sources/master#a850a426491e14186af2250549bf41256b5938d2/gh/gabdube/D2D1_rs_simple_example:/opt/crater/workdir:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+a850a426491e14186af2250549bf41256b5938d2-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 5c9f8c72a361a77262175b78f5d21a98cf6c3fa797d6f39594b76153a11702bf [INFO] running `"docker" "start" "-a" "5c9f8c72a361a77262175b78f5d21a98cf6c3fa797d6f39594b76153a11702bf"` [INFO] [stderr] Compiling d2d1_example v1.0.0 (/opt/crater/workdir) [INFO] [stderr] Compiling user32-sys v0.1.3 [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stderr] --> src/main.rs:19:22 [INFO] [stderr] | [INFO] [stderr] 19 | factoryType: D2D1_FACTORY_TYPE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `REFIID` in this scope [INFO] [stderr] --> src/main.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | riid: REFIID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:21:27 [INFO] [stderr] | [INFO] [stderr] 21 | pFactoryOptions: *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:22:31 [INFO] [stderr] | [INFO] [stderr] 22 | ppIFactory: *mut *mut ID2D1Factory [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/main.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 23 | ) -> HRESULT; [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:31:25 [INFO] [stderr] | [INFO] [stderr] 31 | render_target: *mut ID2D1HwndRenderTarget, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:32:18 [INFO] [stderr] | [INFO] [stderr] 32 | brush1: *mut ID2D1SolidColorBrush, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:33:18 [INFO] [stderr] | [INFO] [stderr] 33 | brush2: *mut ID2D1SolidColorBrush [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:38:19 [INFO] [stderr] | [INFO] [stderr] 38 | factory: *mut ID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:39:11 [INFO] [stderr] | [INFO] [stderr] 39 | hwnd: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:51:30 [INFO] [stderr] | [INFO] [stderr] 51 | let null_options: *const D2D1_FACTORY_OPTIONS = null(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:52:27 [INFO] [stderr] | [INFO] [stderr] 52 | let mut factory: *mut ID2D1Factory = null_mut(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope [INFO] [stderr] --> src/main.rs:55:9 [INFO] [stderr] | [INFO] [stderr] 55 | D2D1_FACTORY_TYPE_SINGLE_THREADED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `UuidOfID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:56:10 [INFO] [stderr] | [INFO] [stderr] 56 | &UuidOfID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:61:18 [INFO] [stderr] | [INFO] [stderr] 61 | if result != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:82:14 [INFO] [stderr] | [INFO] [stderr] 82 | let mut rc: RECT = uninitialized(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetClientRect` in this scope [INFO] [stderr] --> src/main.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | GetClientRect(hwnd, &mut rc); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:94:16 [INFO] [stderr] | [INFO] [stderr] 94 | let size = D2D_SIZE_U{width: (rc.right-rc.left) as u32, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope [INFO] [stderr] --> src/main.rs:97:24 [INFO] [stderr] | [INFO] [stderr] 97 | let pixel_format = D2D1_PIXEL_FORMAT{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope [INFO] [stderr] --> src/main.rs:98:17 [INFO] [stderr] | [INFO] [stderr] 98 | format: DXGI_FORMAT_B8G8R8A8_UNORM.0, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope [INFO] [stderr] --> src/main.rs:99:20 [INFO] [stderr] | [INFO] [stderr] 99 | alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:102:24 [INFO] [stderr] | [INFO] [stderr] 102 | let render_props = D2D1_RENDER_TARGET_PROPERTIES{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stderr] --> src/main.rs:103:16 [INFO] [stderr] | [INFO] [stderr] 103 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_NONE` in this scope [INFO] [stderr] --> src/main.rs:106:16 [INFO] [stderr] | [INFO] [stderr] 106 | usage: D2D1_RENDER_TARGET_USAGE_NONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stderr] --> src/main.rs:107:19 [INFO] [stderr] | [INFO] [stderr] 107 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:110:29 [INFO] [stderr] | [INFO] [stderr] 110 | let hwnd_render_props = D2D1_HWND_RENDER_TARGET_PROPERTIES{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stderr] --> src/main.rs:113:25 [INFO] [stderr] | [INFO] [stderr] 113 | presentOptions: D2D1_PRESENT_OPTIONS_NONE [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_BRUSH_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:119:33 [INFO] [stderr] | [INFO] [stderr] 119 | let null_properties: *const D2D1_BRUSH_PROPERTIES = null(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/main.rs:120:16 [INFO] [stderr] | [INFO] [stderr] 120 | let gray = D2D1_COLOR_F{r: 0.345, g: 0.423, b: 0.463, a: 1.0}; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/main.rs:121:15 [INFO] [stderr] | [INFO] [stderr] 121 | let red = D2D1_COLOR_F{r: 0.941, g: 0.353, b: 0.392, a: 1.0}; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:127:23 [INFO] [stderr] | [INFO] [stderr] 127 | let factory: &mut ID2D1Factory = &mut *app.factory; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:128:22 [INFO] [stderr] | [INFO] [stderr] 128 | let mut rt: &mut ID2D1HwndRenderTarget; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:130:107 [INFO] [stderr] | [INFO] [stderr] 130 | if factory.CreateHwndRenderTarget(&render_props, &hwnd_render_props, &mut resources.render_target) != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:136:83 [INFO] [stderr] | [INFO] [stderr] 136 | if rt.CreateSolidColorBrush(&gray, null_properties, &mut resources.brush1) != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:140:82 [INFO] [stderr] | [INFO] [stderr] 140 | if rt.CreateSolidColorBrush(&red, null_properties, &mut resources.brush2) != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/main.rs:183:47 [INFO] [stderr] | [INFO] [stderr] 183 | unsafe fn render_window(myapp: &mut MyApp) -> HRESULT{ [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/main.rs:184:20 [INFO] [stderr] | [INFO] [stderr] 184 | let identity = D2D1_MATRIX_3X2_F{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/main.rs:189:17 [INFO] [stderr] | [INFO] [stderr] 189 | let white = D2D1_COLOR_F{r:1.0, g:1.0, b:1.0, a:1.0}; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_F` in this scope [INFO] [stderr] --> src/main.rs:192:27 [INFO] [stderr] | [INFO] [stderr] 192 | let mut render_size = D2D1_SIZE_F{width: 0.0, height: 0.0}; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FLOAT` in this scope [INFO] [stderr] --> src/main.rs:202:20 [INFO] [stderr] | [INFO] [stderr] 202 | let mut count: FLOAT = 0.0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:205:13 [INFO] [stderr] | [INFO] [stderr] 205 | D2D_POINT_2F{x: count, y: 0.0}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:206:13 [INFO] [stderr] | [INFO] [stderr] 206 | D2D_POINT_2F{x: count, y: render_size.height}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:218:13 [INFO] [stderr] | [INFO] [stderr] 218 | D2D_POINT_2F{x: 0.0, y: count}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:219:13 [INFO] [stderr] | [INFO] [stderr] 219 | D2D_POINT_2F{x: render_size.width, y: count}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:231:17 [INFO] [stderr] | [INFO] [stderr] 231 | let rect1 = D2D1_RECT_F{left: rx-50.0, right: rx+50.0, top: ry-50.0, bottom: ry+50.0}; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:232:17 [INFO] [stderr] | [INFO] [stderr] 232 | let rect2 = D2D1_RECT_F{left: rx-100.0, right: rx+100.0, top: ry-100.0, bottom: ry+100.0}; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:241:41 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/main.rs:241:52 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/main.rs:241:61 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/main.rs:241:72 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stderr] --> src/main.rs:241:83 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/main.rs:242:22 [INFO] [stderr] | [INFO] [stderr] 242 | let mut result: (LPARAM, bool) = (1, true); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:243:21 [INFO] [stderr] | [INFO] [stderr] 243 | let myapp_ptr = GetWindowLongPtrW(hwnd, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope [INFO] [stderr] --> src/main.rs:252:40 [INFO] [stderr] | [INFO] [stderr] 252 | if render_window(myapp) == D2DERR_RECREATE_TARGET{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GET_X_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:258:25 [INFO] [stderr] | [INFO] [stderr] 258 | let width = GET_X_LPARAM(l) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GET_Y_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:259:26 [INFO] [stderr] | [INFO] [stderr] 259 | let height = GET_Y_LPARAM(l) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:260:31 [INFO] [stderr] | [INFO] [stderr] 260 | let render_size = D2D_SIZE_U{width: width, height: height}; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:269:13 [INFO] [stderr] | [INFO] [stderr] 269 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:272:13 [INFO] [stderr] | [INFO] [stderr] 272 | SetWindowLongPtrW(hwnd, 0, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DefWindowProcW` in this scope [INFO] [stderr] --> src/main.rs:279:18 [INFO] [stderr] | [INFO] [stderr] 279 | false => DefWindowProcW(hwnd, msg, w, l) [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:290:40 [INFO] [stderr] | [INFO] [stderr] 290 | unsafe fn setup_class(class_name: &Vec){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HICON` in this scope [INFO] [stderr] --> src/main.rs:291:20 [INFO] [stderr] | [INFO] [stderr] 291 | let null_icon: HICON = null_mut(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stderr] --> src/main.rs:292:26 [INFO] [stderr] | [INFO] [stderr] 292 | let null_background: HBRUSH = null_mut(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:293:27 [INFO] [stderr] | [INFO] [stderr] 293 | let null_name: *const WCHAR = null(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:294:18 [INFO] [stderr] | [INFO] [stderr] 294 | let module = GetModuleHandleW(null_name); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:297:5 [INFO] [stderr] | [INFO] [stderr] 297 | WNDCLASSEXW{ [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:298:27 [INFO] [stderr] | [INFO] [stderr] 298 | cbSize: size_of::() as UINT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/main.rs:298:45 [INFO] [stderr] | [INFO] [stderr] 298 | cbSize: size_of::() as UINT, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stderr] --> src/main.rs:299:16 [INFO] [stderr] | [INFO] [stderr] 299 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stderr] --> src/main.rs:299:29 [INFO] [stderr] | [INFO] [stderr] 299 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadCursorW` in this scope [INFO] [stderr] --> src/main.rs:305:18 [INFO] [stderr] | [INFO] [stderr] 305 | hCursor: LoadCursorW(module, IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stderr] --> src/main.rs:305:38 [INFO] [stderr] | [INFO] [stderr] 305 | hCursor: LoadCursorW(module, IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterClassExW` in this scope [INFO] [stderr] --> src/main.rs:313:11 [INFO] [stderr] | [INFO] [stderr] 313 | match RegisterClassExW(&class){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:322:58 [INFO] [stderr] | [INFO] [stderr] 322 | unsafe fn setup_window(app: &mut MyApp, class_name: &Vec, window_name: &Vec){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:322:84 [INFO] [stderr] | [INFO] [stderr] 322 | unsafe fn setup_window(app: &mut MyApp, class_name: &Vec, window_name: &Vec){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:323:20 [INFO] [stderr] | [INFO] [stderr] 323 | let null_hwnd: HWND = null_mut(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stderr] --> src/main.rs:324:20 [INFO] [stderr] | [INFO] [stderr] 324 | let null_menu: HMENU = null_mut(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:325:27 [INFO] [stderr] | [INFO] [stderr] 325 | let null_name: *const WCHAR = null(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/main.rs:326:15 [INFO] [stderr] | [INFO] [stderr] 326 | let null: LPVOID = null_mut(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:327:18 [INFO] [stderr] | [INFO] [stderr] 327 | let module = GetModuleHandleW(null_name); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateWindowExW` in this scope [INFO] [stderr] --> src/main.rs:330:5 [INFO] [stderr] | [INFO] [stderr] 330 | CreateWindowExW( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_EX_COMPOSITED` in this scope [INFO] [stderr] --> src/main.rs:331:9 [INFO] [stderr] | [INFO] [stderr] 331 | WS_EX_COMPOSITED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stderr] --> src/main.rs:334:9 [INFO] [stderr] | [INFO] [stderr] 334 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stderr] --> src/main.rs:334:31 [INFO] [stderr] | [INFO] [stderr] 334 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:335:9 [INFO] [stderr] | [INFO] [stderr] 335 | CW_USEDEFAULT, CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:335:24 [INFO] [stderr] | [INFO] [stderr] 335 | CW_USEDEFAULT, CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:354:5 [INFO] [stderr] | [INFO] [stderr] 354 | SetWindowLongPtrW(app.hwnd, 0, transmute(app)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:376:29 [INFO] [stderr] | [INFO] [stderr] 376 | let class_name: Vec = vec![77, 121, 65, 112, 112, 0]; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:377:30 [INFO] [stderr] | [INFO] [stderr] 377 | let window_name: Vec = vec![77, 121, 65, 112, 112, 0]; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:390:26 [INFO] [stderr] | [INFO] [stderr] 390 | let null_handle: HWND = null_mut(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetMessageW` in this scope [INFO] [stderr] --> src/main.rs:391:15 [INFO] [stderr] | [INFO] [stderr] 391 | while GetMessageW(&mut msg, null_handle, 0, 0) != 0{ [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `TranslateMessage` in this scope [INFO] [stderr] --> src/main.rs:392:13 [INFO] [stderr] | [INFO] [stderr] 392 | TranslateMessage(&msg); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DispatchMessageW` in this scope [INFO] [stderr] --> src/main.rs:393:13 [INFO] [stderr] | [INFO] [stderr] 393 | DispatchMessageW(&msg); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::*` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `user32::*` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use user32::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `kernel32::*` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use kernel32::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 93 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_TYPE` in this scope [INFO] [stderr] --> src/main.rs:19:22 [INFO] [stderr] | [INFO] [stderr] 19 | factoryType: D2D1_FACTORY_TYPE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `REFIID` in this scope [INFO] [stderr] --> src/main.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | riid: REFIID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:21:27 [INFO] [stderr] | [INFO] [stderr] 21 | pFactoryOptions: *const D2D1_FACTORY_OPTIONS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:22:31 [INFO] [stderr] | [INFO] [stderr] 22 | ppIFactory: *mut *mut ID2D1Factory [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/main.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 23 | ) -> HRESULT; [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:31:25 [INFO] [stderr] | [INFO] [stderr] 31 | render_target: *mut ID2D1HwndRenderTarget, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:32:18 [INFO] [stderr] | [INFO] [stderr] 32 | brush1: *mut ID2D1SolidColorBrush, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1SolidColorBrush` in this scope [INFO] [stderr] --> src/main.rs:33:18 [INFO] [stderr] | [INFO] [stderr] 33 | brush2: *mut ID2D1SolidColorBrush [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:38:19 [INFO] [stderr] | [INFO] [stderr] 38 | factory: *mut ID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:39:11 [INFO] [stderr] | [INFO] [stderr] 39 | hwnd: HWND, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_FACTORY_OPTIONS` in this scope [INFO] [stderr] --> src/main.rs:51:30 [INFO] [stderr] | [INFO] [stderr] 51 | let null_options: *const D2D1_FACTORY_OPTIONS = null(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:52:27 [INFO] [stderr] | [INFO] [stderr] 52 | let mut factory: *mut ID2D1Factory = null_mut(); [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope [INFO] [stderr] --> src/main.rs:55:9 [INFO] [stderr] | [INFO] [stderr] 55 | D2D1_FACTORY_TYPE_SINGLE_THREADED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `UuidOfID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:56:10 [INFO] [stderr] | [INFO] [stderr] 56 | &UuidOfID2D1Factory, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: Could not compile `d2d1_example`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:61:18 [INFO] [stderr] | [INFO] [stderr] 61 | if result != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RECT` in this scope [INFO] [stderr] --> src/main.rs:82:14 [INFO] [stderr] | [INFO] [stderr] 82 | let mut rc: RECT = uninitialized(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetClientRect` in this scope [INFO] [stderr] --> src/main.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | GetClientRect(hwnd, &mut rc); [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:94:16 [INFO] [stderr] | [INFO] [stderr] 94 | let size = D2D_SIZE_U{width: (rc.right-rc.left) as u32, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope [INFO] [stderr] --> src/main.rs:97:24 [INFO] [stderr] | [INFO] [stderr] 97 | let pixel_format = D2D1_PIXEL_FORMAT{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope [INFO] [stderr] --> src/main.rs:98:17 [INFO] [stderr] | [INFO] [stderr] 98 | format: DXGI_FORMAT_B8G8R8A8_UNORM.0, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope [INFO] [stderr] --> src/main.rs:99:20 [INFO] [stderr] | [INFO] [stderr] 99 | alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:102:24 [INFO] [stderr] | [INFO] [stderr] 102 | let render_props = D2D1_RENDER_TARGET_PROPERTIES{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_TYPE_DEFAULT` in this scope [INFO] [stderr] --> src/main.rs:103:16 [INFO] [stderr] | [INFO] [stderr] 103 | _type: D2D1_RENDER_TARGET_TYPE_DEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_RENDER_TARGET_USAGE_NONE` in this scope [INFO] [stderr] --> src/main.rs:106:16 [INFO] [stderr] | [INFO] [stderr] 106 | usage: D2D1_RENDER_TARGET_USAGE_NONE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_FEATURE_LEVEL_DEFAULT` in this scope [INFO] [stderr] --> src/main.rs:107:19 [INFO] [stderr] | [INFO] [stderr] 107 | minLevel: D2D1_FEATURE_LEVEL_DEFAULT [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:110:29 [INFO] [stderr] | [INFO] [stderr] 110 | let hwnd_render_props = D2D1_HWND_RENDER_TARGET_PROPERTIES{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2D1_PRESENT_OPTIONS_NONE` in this scope [INFO] [stderr] --> src/main.rs:113:25 [INFO] [stderr] | [INFO] [stderr] 113 | presentOptions: D2D1_PRESENT_OPTIONS_NONE [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `D2D1_BRUSH_PROPERTIES` in this scope [INFO] [stderr] --> src/main.rs:119:33 [INFO] [stderr] | [INFO] [stderr] 119 | let null_properties: *const D2D1_BRUSH_PROPERTIES = null(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/main.rs:120:16 [INFO] [stderr] | [INFO] [stderr] 120 | let gray = D2D1_COLOR_F{r: 0.345, g: 0.423, b: 0.463, a: 1.0}; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/main.rs:121:15 [INFO] [stderr] | [INFO] [stderr] 121 | let red = D2D1_COLOR_F{r: 0.941, g: 0.353, b: 0.392, a: 1.0}; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1Factory` in this scope [INFO] [stderr] --> src/main.rs:127:23 [INFO] [stderr] | [INFO] [stderr] 127 | let factory: &mut ID2D1Factory = &mut *app.factory; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `ID2D1HwndRenderTarget` in this scope [INFO] [stderr] --> src/main.rs:128:22 [INFO] [stderr] | [INFO] [stderr] 128 | let mut rt: &mut ID2D1HwndRenderTarget; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:130:107 [INFO] [stderr] | [INFO] [stderr] 130 | if factory.CreateHwndRenderTarget(&render_props, &hwnd_render_props, &mut resources.render_target) != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:136:83 [INFO] [stderr] | [INFO] [stderr] 136 | if rt.CreateSolidColorBrush(&gray, null_properties, &mut resources.brush1) != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `S_OK` in this scope [INFO] [stderr] --> src/main.rs:140:82 [INFO] [stderr] | [INFO] [stderr] 140 | if rt.CreateSolidColorBrush(&red, null_properties, &mut resources.brush2) != S_OK{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HRESULT` in this scope [INFO] [stderr] --> src/main.rs:183:47 [INFO] [stderr] | [INFO] [stderr] 183 | unsafe fn render_window(myapp: &mut MyApp) -> HRESULT{ [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_MATRIX_3X2_F` in this scope [INFO] [stderr] --> src/main.rs:184:20 [INFO] [stderr] | [INFO] [stderr] 184 | let identity = D2D1_MATRIX_3X2_F{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope [INFO] [stderr] --> src/main.rs:189:17 [INFO] [stderr] | [INFO] [stderr] 189 | let white = D2D1_COLOR_F{r:1.0, g:1.0, b:1.0, a:1.0}; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_SIZE_F` in this scope [INFO] [stderr] --> src/main.rs:192:27 [INFO] [stderr] | [INFO] [stderr] 192 | let mut render_size = D2D1_SIZE_F{width: 0.0, height: 0.0}; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `FLOAT` in this scope [INFO] [stderr] --> src/main.rs:202:20 [INFO] [stderr] | [INFO] [stderr] 202 | let mut count: FLOAT = 0.0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:205:13 [INFO] [stderr] | [INFO] [stderr] 205 | D2D_POINT_2F{x: count, y: 0.0}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:206:13 [INFO] [stderr] | [INFO] [stderr] 206 | D2D_POINT_2F{x: count, y: render_size.height}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:218:13 [INFO] [stderr] | [INFO] [stderr] 218 | D2D_POINT_2F{x: 0.0, y: count}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_POINT_2F` in this scope [INFO] [stderr] --> src/main.rs:219:13 [INFO] [stderr] | [INFO] [stderr] 219 | D2D_POINT_2F{x: render_size.width, y: count}, [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:231:17 [INFO] [stderr] | [INFO] [stderr] 231 | let rect1 = D2D1_RECT_F{left: rx-50.0, right: rx+50.0, top: ry-50.0, bottom: ry+50.0}; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D1_RECT_F` in this scope [INFO] [stderr] --> src/main.rs:232:17 [INFO] [stderr] | [INFO] [stderr] 232 | let rect2 = D2D1_RECT_F{left: rx-100.0, right: rx+100.0, top: ry-100.0, bottom: ry+100.0}; [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:241:41 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/main.rs:241:52 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WPARAM` in this scope [INFO] [stderr] --> src/main.rs:241:61 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/main.rs:241:72 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LRESULT` in this scope [INFO] [stderr] --> src/main.rs:241:83 [INFO] [stderr] | [INFO] [stderr] 241 | unsafe extern "system" fn wndproc(hwnd: HWND, msg: UINT, w: WPARAM, l: LPARAM) -> LRESULT{ [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPARAM` in this scope [INFO] [stderr] --> src/main.rs:242:22 [INFO] [stderr] | [INFO] [stderr] 242 | let mut result: (LPARAM, bool) = (1, true); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:243:21 [INFO] [stderr] | [INFO] [stderr] 243 | let myapp_ptr = GetWindowLongPtrW(hwnd, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope [INFO] [stderr] --> src/main.rs:252:40 [INFO] [stderr] | [INFO] [stderr] 252 | if render_window(myapp) == D2DERR_RECREATE_TARGET{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GET_X_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:258:25 [INFO] [stderr] | [INFO] [stderr] 258 | let width = GET_X_LPARAM(l) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GET_Y_LPARAM` in this scope [INFO] [stderr] --> src/main.rs:259:26 [INFO] [stderr] | [INFO] [stderr] 259 | let height = GET_Y_LPARAM(l) as u32; [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope [INFO] [stderr] --> src/main.rs:260:31 [INFO] [stderr] | [INFO] [stderr] 260 | let render_size = D2D_SIZE_U{width: width, height: height}; [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `PostQuitMessage` in this scope [INFO] [stderr] --> src/main.rs:269:13 [INFO] [stderr] | [INFO] [stderr] 269 | PostQuitMessage(0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:272:13 [INFO] [stderr] | [INFO] [stderr] 272 | SetWindowLongPtrW(hwnd, 0, 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DefWindowProcW` in this scope [INFO] [stderr] --> src/main.rs:279:18 [INFO] [stderr] | [INFO] [stderr] 279 | false => DefWindowProcW(hwnd, msg, w, l) [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:290:40 [INFO] [stderr] | [INFO] [stderr] 290 | unsafe fn setup_class(class_name: &Vec){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HICON` in this scope [INFO] [stderr] --> src/main.rs:291:20 [INFO] [stderr] | [INFO] [stderr] 291 | let null_icon: HICON = null_mut(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HBRUSH` in this scope [INFO] [stderr] --> src/main.rs:292:26 [INFO] [stderr] | [INFO] [stderr] 292 | let null_background: HBRUSH = null_mut(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:293:27 [INFO] [stderr] | [INFO] [stderr] 293 | let null_name: *const WCHAR = null(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:294:18 [INFO] [stderr] | [INFO] [stderr] 294 | let module = GetModuleHandleW(null_name); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:297:5 [INFO] [stderr] | [INFO] [stderr] 297 | WNDCLASSEXW{ [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WNDCLASSEXW` in this scope [INFO] [stderr] --> src/main.rs:298:27 [INFO] [stderr] | [INFO] [stderr] 298 | cbSize: size_of::() as UINT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `UINT` in this scope [INFO] [stderr] --> src/main.rs:298:45 [INFO] [stderr] | [INFO] [stderr] 298 | cbSize: size_of::() as UINT, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_HREDRAW` in this scope [INFO] [stderr] --> src/main.rs:299:16 [INFO] [stderr] | [INFO] [stderr] 299 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CS_VREDRAW` in this scope [INFO] [stderr] --> src/main.rs:299:29 [INFO] [stderr] | [INFO] [stderr] 299 | style: CS_HREDRAW | CS_VREDRAW, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `LoadCursorW` in this scope [INFO] [stderr] --> src/main.rs:305:18 [INFO] [stderr] | [INFO] [stderr] 305 | hCursor: LoadCursorW(module, IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `IDC_ARROW` in this scope [INFO] [stderr] --> src/main.rs:305:38 [INFO] [stderr] | [INFO] [stderr] 305 | hCursor: LoadCursorW(module, IDC_ARROW), [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `RegisterClassExW` in this scope [INFO] [stderr] --> src/main.rs:313:11 [INFO] [stderr] | [INFO] [stderr] 313 | match RegisterClassExW(&class){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:322:58 [INFO] [stderr] | [INFO] [stderr] 322 | unsafe fn setup_window(app: &mut MyApp, class_name: &Vec, window_name: &Vec){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:322:84 [INFO] [stderr] | [INFO] [stderr] 322 | unsafe fn setup_window(app: &mut MyApp, class_name: &Vec, window_name: &Vec){ [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:323:20 [INFO] [stderr] | [INFO] [stderr] 323 | let null_hwnd: HWND = null_mut(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HMENU` in this scope [INFO] [stderr] --> src/main.rs:324:20 [INFO] [stderr] | [INFO] [stderr] 324 | let null_menu: HMENU = null_mut(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:325:27 [INFO] [stderr] | [INFO] [stderr] 325 | let null_name: *const WCHAR = null(); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/main.rs:326:15 [INFO] [stderr] | [INFO] [stderr] 326 | let null: LPVOID = null_mut(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetModuleHandleW` in this scope [INFO] [stderr] --> src/main.rs:327:18 [INFO] [stderr] | [INFO] [stderr] 327 | let module = GetModuleHandleW(null_name); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `CreateWindowExW` in this scope [INFO] [stderr] --> src/main.rs:330:5 [INFO] [stderr] | [INFO] [stderr] 330 | CreateWindowExW( [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_EX_COMPOSITED` in this scope [INFO] [stderr] --> src/main.rs:331:9 [INFO] [stderr] | [INFO] [stderr] 331 | WS_EX_COMPOSITED, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stderr] --> src/main.rs:334:9 [INFO] [stderr] | [INFO] [stderr] 334 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `WS_VISIBLE` in this scope [INFO] [stderr] --> src/main.rs:334:31 [INFO] [stderr] | [INFO] [stderr] 334 | WS_OVERLAPPEDWINDOW | WS_VISIBLE, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:335:9 [INFO] [stderr] | [INFO] [stderr] 335 | CW_USEDEFAULT, CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `CW_USEDEFAULT` in this scope [INFO] [stderr] --> src/main.rs:335:24 [INFO] [stderr] | [INFO] [stderr] 335 | CW_USEDEFAULT, CW_USEDEFAULT, [INFO] [stderr] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `SetWindowLongPtrW` in this scope [INFO] [stderr] --> src/main.rs:354:5 [INFO] [stderr] | [INFO] [stderr] 354 | SetWindowLongPtrW(app.hwnd, 0, transmute(app)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:376:29 [INFO] [stderr] | [INFO] [stderr] 376 | let class_name: Vec = vec![77, 121, 65, 112, 112, 0]; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `WCHAR` in this scope [INFO] [stderr] --> src/main.rs:377:30 [INFO] [stderr] | [INFO] [stderr] 377 | let window_name: Vec = vec![77, 121, 65, 112, 112, 0]; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HWND` in this scope [INFO] [stderr] --> src/main.rs:390:26 [INFO] [stderr] | [INFO] [stderr] 390 | let null_handle: HWND = null_mut(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `GetMessageW` in this scope [INFO] [stderr] --> src/main.rs:391:15 [INFO] [stderr] | [INFO] [stderr] 391 | while GetMessageW(&mut msg, null_handle, 0, 0) != 0{ [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `TranslateMessage` in this scope [INFO] [stderr] --> src/main.rs:392:13 [INFO] [stderr] | [INFO] [stderr] 392 | TranslateMessage(&msg); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `DispatchMessageW` in this scope [INFO] [stderr] --> src/main.rs:393:13 [INFO] [stderr] | [INFO] [stderr] 393 | DispatchMessageW(&msg); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: unused import: `winapi::*` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `user32::*` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use user32::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `kernel32::*` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use kernel32::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 93 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0422, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `d2d1_example`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "5c9f8c72a361a77262175b78f5d21a98cf6c3fa797d6f39594b76153a11702bf"` [INFO] running `"docker" "rm" "-f" "5c9f8c72a361a77262175b78f5d21a98cf6c3fa797d6f39594b76153a11702bf"` [INFO] [stdout] 5c9f8c72a361a77262175b78f5d21a98cf6c3fa797d6f39594b76153a11702bf