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

use a;

import a::to_str;

impl of to_str for bool {
    fn to_str() -> str { #fmt("%b", self) }
}