summary refs log tree commit diff
path: root/src/test/auxiliary/issue_2242_b.rs
blob: 001569f636aeb1c5dbcc06083fb96aff07238222 (plain)
1
2
3
4
5
6
7
8
9
#[link(name = "b", vers = "0.1")];
#[crate_type = "lib"];

extern mod a;
use a::to_strz;

impl int: to_strz {
    fn to_strz() -> ~str { fmt!("%?", self) }
}