]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/default-method/auxiliary/xc_2.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / default-method / auxiliary / xc_2.rs
CommitLineData
6a06907d 1// aux-build:xc.rs
223e47cc 2
6a06907d 3extern crate xc as aux;
1a4d82fc 4use aux::A;
970d7e83 5
c34b1796 6pub struct a_struct { pub x: isize }
1a4d82fc
JJ
7
8impl 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.
13pub fn welp<A>(x: A) -> A {
14 let a = a_struct { x: 0 };
15 a.g();
16 x
223e47cc 17}