Skip to content

Commit c0d41fb

Browse files
Update issue-48276 test to new stderr format
1 parent 264c201 commit c0d41fb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/ui/issue-48276.stderr

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
error[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

1010
error[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

1818
error[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

2626
error: aborting due to 3 previous errors
2727

28+
If you want more information on this error, try using "rustc --explain E0185"

0 commit comments

Comments
 (0)