rust/tests/crashes/127628.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
282 B
Rust
Raw Normal View History

2024-07-21 10:50:57 -05:00
//@ 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 }
}
}