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
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!.)
The text was updated successfully, but these errors were encountered:
Thanks for the report! Looking at the code structure I think that this is unfortunately a duplicate of rust-lang/rust#16734, so I'm going to close in favor of that.
If you mark the mruby module as pub though or reexport the Value type at the top level I think it should make this go away!
Code runs well in a usual
#[test]
but fails in a doctest:I'm calling
to_bool
method in the test on astruct
calledValue
. The issue is here. (Don't mind thepanic!
.)The text was updated successfully, but these errors were encountered: