rust/tests/crashes/127628.rs
Matthias Krüger 5ab2e40294 add more tests
2024-07-21 17:50:57 +02:00

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 }
}
}