Skip to content

Doctest fails to link #2377

@dragostis

Description

@dragostis

Code runs well in a usual #[test] but fails in a doctest:

note: Undefined symbols for architecture x86_64:
  "mruby::_$LT$impl$GT$::to_bool::hb7390b50b434ef6bida", referenced from:
      main::ha42f3f275405f749gaa in rust_out.0.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
thread 'mruby::MRuby_0' panicked at 'Box<Any>', src/libsyntax/diagnostic.rs:240

I'm calling to_bool method in the test on a struct called Value. The issue is here. (Don't mind the panic!.)

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