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