about summary refs log tree commit diff
path: root/tests/ui/cross-crate/trait-lifetime-param.rs
blob: 89983492fe4cb28cdc411b542f1353698130fc40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ run-pass
#![allow(dead_code)]
//@ aux-build:xcrate-trait-lifetime-param.rs


extern crate xcrate_trait_lifetime_param as other;

struct Reader<'a> {
    b : &'a [u8]
}

impl <'a> other::FromBuf<'a> for Reader<'a> {
    fn from_buf(b : &'a [u8]) -> Reader<'a> {
        Reader { b : b }
    }
}

pub fn main () {}