]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-42312.rs
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.git] / src / test / ui / issues / issue-42312.rs
1 use std::ops::Deref;
2
3 pub trait Foo {
4     fn baz(_: Self::Target) where Self: Deref {}
5     //~^ ERROR the size for values of type
6 }
7
8 pub fn f(_: dyn ToString) {}
9 //~^ ERROR the size for values of type
10
11 fn main() { }