]> git.lizzy.rs Git - rust.git/blob - tests/ui/cross-crate/xcrate-trait-lifetime-param.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[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 () {}