mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 13:37:37 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
19 lines
317 B
Rust
19 lines
317 B
Rust
//@ 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 () {}
|