1 error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
2 --> $DIR/issue-48276.rs:11:5
4 LL | fn from(a: A) -> Self;
5 | ---------------------- trait method declared without `&self`
7 LL | fn from(self: &'a Self) -> &'b str {
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl
10 error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
11 --> $DIR/issue-48276.rs:20:5
13 LL | fn from(&self) -> B {
14 | ^^^^^^^^^^^^^^^^^^^ `&self` used in impl
16 = note: `from` from trait: `fn(T) -> Self`
18 error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
19 --> $DIR/issue-48276.rs:27:5
21 LL | fn from(&self) -> &'static str {
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl
24 = note: `from` from trait: `fn(T) -> Self`
26 error: aborting due to 3 previous errors
28 For more information about this error, try `rustc --explain E0185`.