summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-42312.rs
blob: 426efcbf9b16f8292cdf6c82d1044f9147127f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std::ops::Deref;

pub trait Foo {
    fn baz(_: Self::Target) where Self: Deref {}
    //~^ ERROR the size for values of type
}

pub fn f(_: dyn ToString) {}
//~^ ERROR the size for values of type

fn main() { }