1 error: impl trait in impl method signature does not match trait method signature
2 --> $DIR/refine.rs:10:22
4 LL | fn bar() -> impl Sized;
5 | ---------- return type from trait method defined here
7 LL | fn bar() -> impl Copy {}
8 | ^^^^ this bound is stronger than that defined on the trait
10 = note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
11 note: the lint level is defined here
12 --> $DIR/refine.rs:2:9
14 LL | #![deny(refining_impl_trait)]
16 help: replace the return type so that it matches the trait
18 LL | fn bar() -> impl Sized {}
21 error: impl trait in impl method signature does not match trait method signature
22 --> $DIR/refine.rs:16:5
24 LL | fn bar() -> impl Sized;
25 | ---------- return type from trait method defined here
30 = note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
31 help: replace the return type so that it matches the trait
33 LL | fn bar() -> impl Sized {}
36 error: impl trait in impl method signature does not match trait method signature
37 --> $DIR/refine.rs:22:17
39 LL | fn bar() -> impl Sized;
40 | ---------- return type from trait method defined here
42 LL | fn bar() -> () {}
45 = note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
46 help: replace the return type so that it matches the trait
48 LL | fn bar() -> impl Sized {}
51 error: impl trait in impl method signature does not match trait method signature
52 --> $DIR/refine.rs:44:27
54 LL | fn bar<'a>(&'a self) -> impl Sized + 'a;
55 | --------------- return type from trait method defined here
57 LL | fn bar(&self) -> impl Copy + '_ {}
58 | ^^^^ this bound is stronger than that defined on the trait
60 = note: add `#[allow(refining_impl_trait)]` if it is intended for this to be part of the public API of this crate
61 help: replace the return type so that it matches the trait
63 LL | fn bar(&self) -> impl Sized + '_ {}
66 error: aborting due to 4 previous errors