]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/default-method/auxiliary/xc_2.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / traits / default-method / auxiliary / xc_2.rs
1 // aux-build:xc.rs
2
3 extern crate xc as aux;
4 use aux::A;
5
6 pub struct a_struct { pub x: isize }
7
8 impl A for a_struct {
9 fn f(&self) -> isize { 10 }
10 }
11
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
17 }