/src/test/run-fail/rhs-type.rs
Rust | 4 lines | 1 code | 0 blank | 3 comment | 0 complexity | adc2bad92a25452c809f95bc047f9f19 MD5 | raw file
1// Tests that trans treats the rhs of pth's decl 2// as a _|_-typed thing, not a str-typed thing 3// error-pattern:bye 4fn main() { let pth = fail ~"bye"; let rs: {t: ~str} = {t: pth}; }