Skip to content

Cargo test fails for hello-world #585

Closed
@Eratosthenes

Description

@Eratosthenes

Can anyone help me get hello-world working? Here's what happens when I run cargo test:

$ cargo test
   Compiling hello-world v1.1.0 (file:///Users/nathanrapport/exercism/rust/hello-world)
    Finished dev [unoptimized + debuginfo] target(s) in 3.79s
     Running target/debug/deps/hello_world-3a34f9abc5fed031

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/hello_world-28c0c21555c7c134

running 1 test
error: process didn't exit successfully: `/Users/nathanrapport/exercism/rust/hello-world/target/debug/deps/hello_world-28c0c21555c7c134` (signal: 11, SIGSEGV: invalid memory reference)

I believe I'm on the latest version of rust:

$ rustc --version
rustc 1.27.2 (58cc626de 2018-07-18)

The weird thing is that I can see the executable file sitting there. When I run it, I get this output though:

$ /Users/nathanrapport/exercism/rust/hello-world/target/debug/hello_world-28c0c21555c7c134 ; exit;

running 1 test
Segmentation fault: 11
logout

[Process completed]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions