mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
320 B
Rust
14 lines
320 B
Rust
trait Foo {
|
|
fn dummy(&self) {}
|
|
}
|
|
|
|
// This should emit the less confusing error, not the more confusing one.
|
|
|
|
fn foo(_x: Foo + Send) {
|
|
//~^ ERROR the size for values of type
|
|
//~| WARN trait objects without an explicit `dyn` are deprecated
|
|
//~| WARN this is accepted in the current edition
|
|
}
|
|
|
|
fn main() {}
|