]> git.lizzy.rs Git - rust.git/blob - tests/ui/cross-crate/xcrate-trait-lifetime-param.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[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 () {}