[INFO] cloning repository https://github.com/FateXii/handmade_hero [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FateXii/handmade_hero" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFateXii%2Fhandmade_hero", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFateXii%2Fhandmade_hero'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2642fbb96ed2d79c8f71e05dbbbc6bf8b3580c2c [INFO] checking FateXii/handmade_hero against try#894d32a5432c6a6461bb2aac7c3d5f2e87dce83f for pr-77015 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFateXii%2Fhandmade_hero" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FateXii/handmade_hero on toolchain 894d32a5432c6a6461bb2aac7c3d5f2e87dce83f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FateXii/handmade_hero [INFO] finished tweaking git repo https://github.com/FateXii/handmade_hero [INFO] tweaked toml for git repo https://github.com/FateXii/handmade_hero written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/FateXii/handmade_hero already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 59d3bbc69a1d4d84b0a249307fa11474608201da6cd5c16aa5c607aafa30a951 [INFO] running `Command { std: "docker" "start" "-a" "59d3bbc69a1d4d84b0a249307fa11474608201da6cd5c16aa5c607aafa30a951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59d3bbc69a1d4d84b0a249307fa11474608201da6cd5c16aa5c607aafa30a951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59d3bbc69a1d4d84b0a249307fa11474608201da6cd5c16aa5c607aafa30a951", kill_on_drop: false }` [INFO] [stdout] 59d3bbc69a1d4d84b0a249307fa11474608201da6cd5c16aa5c607aafa30a951 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8bb8abbe695cef50bc24091c9bdc4009f03d5ba2fb0d2576d628480baf03b6cd [INFO] running `Command { std: "docker" "start" "-a" "8bb8abbe695cef50bc24091c9bdc4009f03d5ba2fb0d2576d628480baf03b6cd", kill_on_drop: false }` [INFO] [stderr] Checking handmade_hero v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:10:32 [INFO] [stdout] | [INFO] [stdout] 10 | static mut bitmap_memory: *mut Win32::VOID = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | static mut bitmap_info: *mut Win32::BITMAPINFO = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | Win32::VirtualFree(bitmap_memory, 0, Win32::MEM_RELEASE); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | Win32::VirtualFree(bitmap_memory, 0, Win32::MEM_RELEASE); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:41:51 [INFO] [stdout] | [INFO] [stdout] 41 | Box::into_raw(Box::new(std::mem::zeroed::())); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:48:46 [INFO] [stdout] | [INFO] [stdout] 48 | (*bitmap_info).bmiHeader.biCompression = Win32::BI_RGB; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | bitmap_memory = Win32::VirtualAlloc( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | Win32::MEM_COMMIT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | Win32::PAGE_READWRITE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | device_context: Win32::HDC, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Win32::StretchDIBits( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | Win32::DIB_RGB_COLORS, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | Win32::SRCCOPY, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | window: Win32::HWND, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | message: Win32::UINT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | wparam: Win32::WPARAM, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | lparam: Win32::LPARAM, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Win32::LRESULT { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut result: Win32::LRESULT = 0; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | Win32::WM_ACTIVATEAPP => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | Win32::WM_CLOSE => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | Win32::WM_DESTROY => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | Win32::WM_PAINT => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:105:35 [INFO] [stdout] | [INFO] [stdout] 105 | let mut paint_struct: Win32::PAINTSTRUCT = std::mem::zeroed(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | let device_context: Win32::HDC = [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Win32::BeginPaint(window, &mut paint_struct); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | Win32::EndPaint(window, &paint_struct); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | Win32::WM_SIZE => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | let mut client_rect: Win32::RECT = std::mem::zeroed(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | Win32::GetClientRect(window, &mut client_rect); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | result = Win32::DefWindowProcW(window, message, wparam, lparam); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let instance = unsafe { Win32::GetModuleHandleW(std::ptr::null()) }; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | let window_class_name = Win32::c_str("HandmadeHeroWindowClass"); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | let window_name = Win32::c_str("Handmade Hero"); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:137:27 [INFO] [stdout] | [INFO] [stdout] 137 | let mut window_class: Win32::WNDCLASSW = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | window_class.style = Win32::CS_VREDRAW | Win32::CS_HREDRAW; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:139:46 [INFO] [stdout] | [INFO] [stdout] 139 | window_class.style = Win32::CS_VREDRAW | Win32::CS_HREDRAW; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | if unsafe { Win32::RegisterClassW(&window_class) } != 0 { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | Win32::CreateWindowExW( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | Win32::WS_OVERLAPPEDWINDOW | Win32::WS_VISIBLE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:150:46 [INFO] [stdout] | [INFO] [stdout] 150 | Win32::WS_OVERLAPPEDWINDOW | Win32::WS_VISIBLE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:167:34 [INFO] [stdout] | [INFO] [stdout] 167 | let mut msg: Win32::MSG = std::mem::zeroed(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:168:27 [INFO] [stdout] | [INFO] [stdout] 168 | while Win32::PeekMessageW( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | Win32::PM_REMOVE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:176:25 [INFO] [stdout] | [INFO] [stdout] 176 | Win32::TranslateMessage(&msg); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | Win32::DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | let device_context = Win32::GetDC(window); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | Win32::ReleaseDC(window, device_context); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:10:32 [INFO] [stdout] | [INFO] [stdout] 10 | static mut bitmap_memory: *mut Win32::VOID = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | static mut bitmap_info: *mut Win32::BITMAPINFO = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 53 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `handmade_hero` [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | Win32::VirtualFree(bitmap_memory, 0, Win32::MEM_RELEASE); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:34:46 [INFO] [stdout] | [INFO] [stdout] 34 | Win32::VirtualFree(bitmap_memory, 0, Win32::MEM_RELEASE); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:41:51 [INFO] [stdout] | [INFO] [stdout] 41 | Box::into_raw(Box::new(std::mem::zeroed::())); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:48:46 [INFO] [stdout] | [INFO] [stdout] 48 | (*bitmap_info).bmiHeader.biCompression = Win32::BI_RGB; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | bitmap_memory = Win32::VirtualAlloc( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | Win32::MEM_COMMIT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | Win32::PAGE_READWRITE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | device_context: Win32::HDC, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Win32::StretchDIBits( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | Win32::DIB_RGB_COLORS, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | Win32::SRCCOPY, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | window: Win32::HWND, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | message: Win32::UINT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | wparam: Win32::WPARAM, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | lparam: Win32::LPARAM, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Win32::LRESULT { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut result: Win32::LRESULT = 0; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | Win32::WM_ACTIVATEAPP => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | Win32::WM_CLOSE => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | Win32::WM_DESTROY => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | Win32::WM_PAINT => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:105:35 [INFO] [stdout] | [INFO] [stdout] 105 | let mut paint_struct: Win32::PAINTSTRUCT = std::mem::zeroed(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | let device_context: Win32::HDC = [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | Win32::BeginPaint(window, &mut paint_struct); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | Win32::EndPaint(window, &paint_struct); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | Win32::WM_SIZE => { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | let mut client_rect: Win32::RECT = std::mem::zeroed(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | Win32::GetClientRect(window, &mut client_rect); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | result = Win32::DefWindowProcW(window, message, wparam, lparam); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:133:29 [INFO] [stdout] | [INFO] [stdout] 133 | let instance = unsafe { Win32::GetModuleHandleW(std::ptr::null()) }; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | let window_class_name = Win32::c_str("HandmadeHeroWindowClass"); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:135:23 [INFO] [stdout] | [INFO] [stdout] 135 | let window_name = Win32::c_str("Handmade Hero"); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:137:27 [INFO] [stdout] | [INFO] [stdout] 137 | let mut window_class: Win32::WNDCLASSW = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | window_class.style = Win32::CS_VREDRAW | Win32::CS_HREDRAW; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:139:46 [INFO] [stdout] | [INFO] [stdout] 139 | window_class.style = Win32::CS_VREDRAW | Win32::CS_HREDRAW; [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | if unsafe { Win32::RegisterClassW(&window_class) } != 0 { [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | Win32::CreateWindowExW( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | Win32::WS_OVERLAPPEDWINDOW | Win32::WS_VISIBLE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:150:46 [INFO] [stdout] | [INFO] [stdout] 150 | Win32::WS_OVERLAPPEDWINDOW | Win32::WS_VISIBLE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:153:17 [INFO] [stdout] | [INFO] [stdout] 153 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | Win32::CW_USEDEFAULT, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:167:34 [INFO] [stdout] | [INFO] [stdout] 167 | let mut msg: Win32::MSG = std::mem::zeroed(); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:168:27 [INFO] [stdout] | [INFO] [stdout] 168 | while Win32::PeekMessageW( [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | Win32::PM_REMOVE, [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:176:25 [INFO] [stdout] | [INFO] [stdout] 176 | Win32::TranslateMessage(&msg); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | Win32::DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:180:42 [INFO] [stdout] | [INFO] [stdout] 180 | let device_context = Win32::GetDC(window); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Win32` [INFO] [stdout] --> src/bin/win32_handmade/main.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | Win32::ReleaseDC(window, device_context); [INFO] [stdout] | ^^^^^ use of undeclared type `Win32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> examples/main.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | fn print_message(msg: str) -> Result<(), IoError> { [INFO] [stdout] | ^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 38 | fn print_message(msg: &str) -> Result<(), IoError> { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> examples/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | println!("Not Windows{}", msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/main.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | print_message("Hello World").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `str`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> examples/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | print_message("Hello World").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 53 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8bb8abbe695cef50bc24091c9bdc4009f03d5ba2fb0d2576d628480baf03b6cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bb8abbe695cef50bc24091c9bdc4009f03d5ba2fb0d2576d628480baf03b6cd", kill_on_drop: false }` [INFO] [stdout] 8bb8abbe695cef50bc24091c9bdc4009f03d5ba2fb0d2576d628480baf03b6cd