rust/tests/ui/traits/bound/not-on-bare-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
320 B
Rust
Raw Normal View History

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