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