2021-02-08 16:15:45 -06:00
|
|
|
// aux-build:xc.rs
|
2016-04-26 12:51:14 -05:00
|
|
|
|
2021-02-08 16:15:45 -06:00
|
|
|
extern crate xc as aux;
|
2016-04-26 12:51:14 -05:00
|
|
|
use aux::A;
|
|
|
|
|
|
|
|
pub struct a_struct { pub x: isize }
|
|
|
|
|
|
|
|
impl A for a_struct {
|
|
|
|
fn f(&self) -> isize { 10 }
|
|
|
|
}
|
|
|
|
|
|
|
|
// This function will need to get inlined, and badness may result.
|
|
|
|
pub fn welp<A>(x: A) -> A {
|
|
|
|
let a = a_struct { x: 0 };
|
|
|
|
a.g();
|
|
|
|
x
|
|
|
|
}
|