Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example fails with "patterns aren't allowed in methods without bodies" #2

Open
darthdeus opened this issue Sep 29, 2019 · 0 comments
Open

Comments

@darthdeus
Copy link

Running the example fails with the following error:

$ cargo run --example sdl_demo                                                                     master@de1ecdb
   Compiling winapi-build v0.1.1
   Compiling winapi v0.2.5
   Compiling sdl2-sys v0.7.0
   Compiling rustc-serialize v0.3.16
error[E0642]: patterns aren't allowed in methods without bodies
   --> /home/darth/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/rustc-serialize-0.3.16/src/serialize.rs:145:45
    |
145 |                                             &f_name: &str,
    |                                             ^^^^^^^

   Compiling advapi32-sys v0.1.2
   Compiling rand v0.3.12
error: aborting due to previous error

For more information about this error, try `rustc --explain E0642`.
error: Could not compile `rustc-serialize`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant