]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/rhs-type.rs
Use better bound names in `-Zverbose` mode
[rust.git] / src / test / run-fail / rhs-type.rs
1 // Tests that codegen treats the rhs of pth's decl
2 // as a _|_-typed thing, not a str-typed thing
3 // error-pattern:bye
4
5 #![allow(unreachable_code)]
6 #![allow(unused_variables)]
7
8 struct T {
9     t: String,
10 }
11
12 fn main() {
13     let pth = panic!("bye");
14     let _rs: T = T { t: pth };
15 }