Trying to print a value for a type defined in an external crate is crashing rusti:
$ cargo run -- -L testi/target/debug/
Running target/debug/rusti -L testi/target/debug/
rusti=> extern crate testi;
rusti=> use testi::Foo;
rusti=> Foo
LLVM ERROR: Program used external function '__ZN21Foo...std..fmt..Debug3fmt20h8530f8b2d5755ad6iaaE' which could not be resolved!
An unknown error occurred
To learn more, run the command again with --verbose.
$
Environment:
- OS X Yosemite 10.10.3
- rustc 1.5.0-nightly (6e5a32547 2015-09-19)
- cargo 0.6.0-nightly (de11b58 2015-09-16)
- rusti commit 842564d
Both rusti and the testi crate compiled clean with this version.
External crate:
$ cat testi/Cargo.toml
[package]
name = "testi"
version = "0.0.1"
$ cat testi/src/lib.rs
[derive(Debug)]
pub struct Foo;
Trying to print a value for a type defined in an external crate is crashing rusti:
$ cargo run -- -L testi/target/debug/
Running
target/debug/rusti -L testi/target/debug/rusti=> extern crate testi;
rusti=> use testi::Foo;
rusti=> Foo
LLVM ERROR: Program used external function '__ZN21Foo...std..fmt..Debug3fmt20h8530f8b2d5755ad6iaaE' which could not be resolved!
An unknown error occurred
To learn more, run the command again with --verbose.
$
Environment:
Both rusti and the testi crate compiled clean with this version.
External crate:
$ cat testi/Cargo.toml
[package]
name = "testi"
version = "0.0.1"
$ cat testi/src/lib.rs
[derive(Debug)]
pub struct Foo;