]>
Commit | Line | Data |
---|---|---|
6a06907d | 1 | // aux-build:xc.rs |
223e47cc | 2 | |
6a06907d | 3 | extern crate xc as aux; |
1a4d82fc | 4 | use aux::A; |
970d7e83 | 5 | |
c34b1796 | 6 | pub struct a_struct { pub x: isize } |
1a4d82fc JJ |
7 | |
8 | impl A for a_struct { | |
c34b1796 | 9 | fn f(&self) -> isize { 10 } |
223e47cc LB |
10 | } |
11 | ||
1a4d82fc JJ |
12 | // This function will need to get inlined, and badness may result. |
13 | pub fn welp<A>(x: A) -> A { | |
14 | let a = a_struct { x: 0 }; | |
15 | a.g(); | |
16 | x | |
223e47cc | 17 | } |