You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\Andrew McKinlay\Documents\GitHub\rust-sfml> cargo build
Compiling rust-sfml v0.9.0 (file:///C:/Users/Andrew%20McKinlay/Documents/GitHub/rust-sfml)
src\window\event.rs:275:17: 275:32 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:275 sfEvtKeyPressed => {
^~~~~~~~~~~~~~~
src\window\event.rs:284:17: 284:33 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:284 sfEvtKeyReleased => {
^~~~~~~~~~~~~~~~
src\window\event.rs:314:17: 314:41 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:314 sfEvtMouseButtonReleased => super::MouseButtonReleased { button: button, x: x, y
: y },
^~~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:315:17: 315:40 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:315 sfEvtMouseButtonPressed => super::MouseButtonPressed { button: button, x: x, y:
y },
^~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:340:17: 340:43 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:340 sfEvtJoystickButtonPressed =>
^~~~~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:342:17: 342:44 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:342 sfEvtJoystickButtonReleased =>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:353:17: 353:39 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:353 sfEvtJoystickConnected => super::JoystickConnected { joystickid: jid },
^~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:354:17: 354:42 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:354 sfEvtJoystickDisconnected => super::JoystickDisconnected { joystickid: jid},
^~~~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:364:13: 364:24 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:364 sfEvtClosed => super::Closed,
^~~~~~~~~~~
src\window\event.rs:365:13: 365:25 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:365 sfEvtResized => event.size(),
^~~~~~~~~~~~
src\window\event.rs:366:13: 366:27 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:366 sfEvtLostFocus => super::LostFocus,
^~~~~~~~~~~~~~
src\window\event.rs:367:13: 367:29 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:367 sfEvtGainedFocus => super::GainedFocus,
^~~~~~~~~~~~~~~~
src\window\event.rs:368:13: 368:29 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:368 sfEvtTextEntered => event.text(),
^~~~~~~~~~~~~~~~
src\window\event.rs:369:13: 369:28 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:369 sfEvtKeyPressed => event.key(_type),
^~~~~~~~~~~~~~~
src\window\event.rs:370:13: 370:29 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:370 sfEvtKeyReleased => event.key(_type),
^~~~~~~~~~~~~~~~
src\window\event.rs:371:13: 371:33 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:371 sfEvtMouseWheelMoved => event.mouse_wheel(),
^~~~~~~~~~~~~~~~~~~~
src\window\event.rs:372:13: 372:36 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:372 sfEvtMouseButtonPressed => event.mouse_button(_type),
^~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:373:13: 373:37 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:373 sfEvtMouseButtonReleased => event.mouse_button(_type),
^~~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:374:13: 374:28 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:374 sfEvtMouseMoved => event.mouse_move(),
^~~~~~~~~~~~~~~
src\window\event.rs:375:13: 375:30 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:375 sfEvtMouseEntered => super::MouseLeft,
^~~~~~~~~~~~~~~~~
src\window\event.rs:376:13: 376:27 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:376 sfEvtMouseLeft => super::MouseEntered,
^~~~~~~~~~~~~~
src\window\event.rs:377:13: 377:39 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:377 sfEvtJoystickButtonPressed => event.joystick_button(_type),
^~~~~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:378:13: 378:40 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:378 sfEvtJoystickButtonReleased => event.joystick_button(_type),
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:379:13: 379:31 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:379 sfEvtJoystickMoved => event.joystick_move(),
^~~~~~~~~~~~~~~~~~
src\window\event.rs:380:13: 380:35 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:380 sfEvtJoystickConnected => event.joystick_connect(_type),
^~~~~~~~~~~~~~~~~~~~~~
src\window\event.rs:381:13: 381:38 error: static variables cannot be referenced in a pattern, use a `const` instead
src\window\event.rs:381 sfEvtJoystickDisconnected => event.joystick_connect(_type),
^~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 26 previous errors
Could not compile `rust-sfml`.
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
Rust version
Cargo version
Rust SFML version
0.9.0
Error message
The text was updated successfully, but these errors were encountered: