]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bound/not-on-bare-trait.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / traits / bound / not-on-bare-trait.rs
1 trait Foo {
2     fn dummy(&self) {}
3 }
4
5 // This should emit the less confusing error, not the more confusing one.
6
7 fn foo(_x: Foo + Send) {
8     //~^ ERROR the size for values of type
9     //~| WARN trait objects without an explicit `dyn` are deprecated
10     //~| WARN this is accepted in the current edition
11 }
12
13 fn main() {}