2017-06-13 15:22:28 -05:00
|
|
|
use std::ops::Deref;
|
|
|
|
|
|
|
|
pub trait Foo {
|
|
|
|
fn baz(_: Self::Target) where Self: Deref {}
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2017-06-13 15:22:28 -05:00
|
|
|
}
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
pub fn f(_: dyn ToString) {}
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2017-06-13 15:22:28 -05:00
|
|
|
|
|
|
|
fn main() { }
|