mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
15 lines
282 B
Rust
15 lines
282 B
Rust
//@ known-bug: #127628
|
|
//@ compile-flags: -Zpolonius=next
|
|
|
|
use std::io::{self, Read};
|
|
|
|
pub struct Container<'a> {
|
|
reader: &'a mut dyn Read,
|
|
}
|
|
|
|
impl<'a> Container {
|
|
pub fn wrap<'s>(reader: &'s mut dyn io::Read) -> Container<'s> {
|
|
Container { reader: reader }
|
|
}
|
|
}
|