mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 13:07:37 +00:00
17 lines
293 B
Rust
17 lines
293 B
Rust
![]() |
//@ check-pass
|
||
|
// Regression test for #90110.
|
||
|
|
||
|
// Make sure that object safety checking doesn't freak out when
|
||
|
// we have impossible-to-satisfy `Sized` predicates.
|
||
|
|
||
|
trait Parser
|
||
|
where
|
||
|
for<'a> (dyn Parser + 'a): Sized,
|
||
|
{
|
||
|
fn parse_line(&self);
|
||
|
}
|
||
|
|
||
|
fn foo(_: &dyn Parser) {}
|
||
|
|
||
|
fn main() {}
|