about summary refs log tree commit diff
path: root/tests/ui/self/dispatch-from-dyn-layout-2.rs
blob: cd52f060dc83c8ca0f53e702589c15fdbaa261ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ 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() {}