mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
20 lines
350 B
Rust
20 lines
350 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
//@ aux-build:xcrate-trait-lifetime-param.rs
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
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 () {}
|