2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2013-12-04 21:13:31 -05:00
|
|
|
// aux-build:xcrate-trait-lifetime-param.rs
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-27 10:22:44 -07:00
|
|
|
extern crate xcrate_trait_lifetime_param as other;
|
2013-12-04 21:13:31 -05:00
|
|
|
|
|
|
|
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 () {}
|