File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
22 --> $DIR/issue-48276.rs:21:5
33 |
4- 15 | fn from(a: A) -> Self;
4+ LL | fn from(a: A) -> Self;
55 | ---------------------- trait method declared without `&self`
66...
7- 21 | fn from(self: &'a Self) -> &'b str {
7+ LL | fn from(self: &'a Self) -> &'b str {
88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl
99
1010error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
1111 --> $DIR/issue-48276.rs:30:5
1212 |
13- 30 | fn from(&self) -> B {
13+ LL | fn from(&self) -> B {
1414 | ^^^^^^^^^^^^^^^^^^^ `&self` used in impl
1515 |
1616 = note: `from` from trait: `fn(T) -> Self`
1717
1818error[E0185]: method `from` has a `&self` declaration in the impl, but not in the trait
1919 --> $DIR/issue-48276.rs:37:5
2020 |
21- 37 | fn from(&self) -> &'static str {
21+ LL | fn from(&self) -> &'static str {
2222 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&self` used in impl
2323 |
2424 = note: `from` from trait: `fn(T) -> Self`
2525
2626error: aborting due to 3 previous errors
2727
28+ If you want more information on this error, try using "rustc --explain E0185"
You can’t perform that action at this time.
0 commit comments