2013-06-19 13:55:30 -04:00
|
|
|
trait Foo {
|
2021-04-16 11:06:51 +02:00
|
|
|
fn dummy(&self) {}
|
2013-06-19 13:55:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// This should emit the less confusing error, not the more confusing one.
|
|
|
|
|
2014-06-14 11:03:34 -07:00
|
|
|
fn foo(_x: Foo + Send) {
|
2018-07-10 23:10:13 +02:00
|
|
|
//~^ ERROR the size for values of type
|
2019-05-28 14:46:13 -04:00
|
|
|
//~| WARN trait objects without an explicit `dyn` are deprecated
|
2021-06-15 17:16:21 +02:00
|
|
|
//~| WARN this is valid in the current edition
|
2013-06-19 13:55:30 -04:00
|
|
|
}
|
|
|
|
|
2021-04-16 11:06:51 +02:00
|
|
|
fn main() {}
|