Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 814 Bytes
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
//> or the MIT license
// <LICENSE-MIT or>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern crate trait_default_method_xc_aux as aux;
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 };
Jump to Line
Something went wrong with that request. Please try again.