@@ -2,66 +2,86 @@ error[E0599]: no method named `c` found for reference `&dyn Bar` in the current
2
2
--> $DIR/subtrait-method.rs:55:9
3
3
|
4
4
LL | bar.c();
5
- | ^ help: there is a method with a similar name: `a`
5
+ | ^
6
6
|
7
7
= help: items from traits can only be used if the trait is implemented and in scope
8
8
note: `Baz` defines an item `c`, perhaps you need to implement it
9
9
--> $DIR/subtrait-method.rs:27:1
10
10
|
11
11
LL | trait Baz: Bar {
12
12
| ^^^^^^^^^^^^^^
13
+ help: there is a method with a similar name
14
+ |
15
+ LL | bar.a();
16
+ | ~
13
17
14
18
error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope
15
19
--> $DIR/subtrait-method.rs:59:9
16
20
|
17
21
LL | foo.b();
18
- | ^ help: there is a method with a similar name: `a`
22
+ | ^
19
23
|
20
24
= help: items from traits can only be used if the trait is implemented and in scope
21
25
note: `Bar` defines an item `b`, perhaps you need to implement it
22
26
--> $DIR/subtrait-method.rs:17:1
23
27
|
24
28
LL | trait Bar: Foo {
25
29
| ^^^^^^^^^^^^^^
30
+ help: there is a method with a similar name
31
+ |
32
+ LL | foo.a();
33
+ | ~
26
34
27
35
error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope
28
36
--> $DIR/subtrait-method.rs:61:9
29
37
|
30
38
LL | foo.c();
31
- | ^ help: there is a method with a similar name: `a`
39
+ | ^
32
40
|
33
41
= help: items from traits can only be used if the trait is implemented and in scope
34
42
note: `Baz` defines an item `c`, perhaps you need to implement it
35
43
--> $DIR/subtrait-method.rs:27:1
36
44
|
37
45
LL | trait Baz: Bar {
38
46
| ^^^^^^^^^^^^^^
47
+ help: there is a method with a similar name
48
+ |
49
+ LL | foo.a();
50
+ | ~
39
51
40
52
error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope
41
53
--> $DIR/subtrait-method.rs:65:9
42
54
|
43
55
LL | foo.b();
44
- | ^ help: there is a method with a similar name: `a`
56
+ | ^
45
57
|
46
58
= help: items from traits can only be used if the trait is implemented and in scope
47
59
note: `Bar` defines an item `b`, perhaps you need to implement it
48
60
--> $DIR/subtrait-method.rs:17:1
49
61
|
50
62
LL | trait Bar: Foo {
51
63
| ^^^^^^^^^^^^^^
64
+ help: there is a method with a similar name
65
+ |
66
+ LL | foo.a();
67
+ | ~
52
68
53
69
error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope
54
70
--> $DIR/subtrait-method.rs:67:9
55
71
|
56
72
LL | foo.c();
57
- | ^ help: there is a method with a similar name: `a`
73
+ | ^
58
74
|
59
75
= help: items from traits can only be used if the trait is implemented and in scope
60
76
note: `Baz` defines an item `c`, perhaps you need to implement it
61
77
--> $DIR/subtrait-method.rs:27:1
62
78
|
63
79
LL | trait Baz: Bar {
64
80
| ^^^^^^^^^^^^^^
81
+ help: there is a method with a similar name
82
+ |
83
+ LL | foo.a();
84
+ | ~
65
85
66
86
error: aborting due to 5 previous errors
67
87
0 commit comments