]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bound/not-on-bare-trait.rs
Auto merge of #84959 - camsteffen:lint-suggest-group, r=estebank
[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() {}