]> git.lizzy.rs Git - rust.git/blob - tests/ui/cross-crate/xcrate-trait-lifetime-param.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / cross-crate / xcrate-trait-lifetime-param.rs
1 // run-pass
2 #![allow(dead_code)]
3 // aux-build:xcrate-trait-lifetime-param.rs
4
5 // pretty-expanded FIXME #23616
6
7 extern crate xcrate_trait_lifetime_param as other;
8
9 struct Reader<'a> {
10     b : &'a [u8]
11 }
12
13 impl <'a> other::FromBuf<'a> for Reader<'a> {
14     fn from_buf(b : &'a [u8]) -> Reader<'a> {
15         Reader { b : b }
16     }
17 }
18
19 pub fn main () {}