You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/impl-trait/issue-21659-show-relevant-trait-impls-3.stderr
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ error[E0599]: no method named `foo` found for type `Bar` in the current scope
4
4
30 | f1.foo(1usize);
5
5
| ^^^
6
6
|
7
-
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `foo`, perhaps you need to implement it:
7
+
= help: items from traits can only be used if the trait is implemented and in scope
8
+
= note: the following trait defines an item `foo`, perhaps you need to implement it:
Copy file name to clipboardExpand all lines: src/test/ui/impl-trait/method-suggestion-no-duplication.stderr
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ error[E0599]: no method named `is_empty` found for type `Foo` in the current sco
4
4
19 | foo(|s| s.is_empty());
5
5
| ^^^^^^^^
6
6
|
7
-
= help: items from traits can only be used if the trait is implemented and in scope; the following traits define an item `is_empty`, perhaps you need to implement one of them:
7
+
= help: items from traits can only be used if the trait is implemented and in scope
8
+
= note: the following traits define an item `is_empty`, perhaps you need to implement one of them:
Copy file name to clipboardExpand all lines: src/test/ui/impl-trait/no-method-suggested-traits.stderr
+36-18Lines changed: 36 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ error[E0599]: no method named `method` found for type `u32` in the current scope
4
4
33 | 1u32.method();
5
5
| ^^^^^^
6
6
|
7
-
= help: items from traits can only be used if the trait is in scope; the following traits are implemented but not in scope, perhaps add a `use` for one of them:
7
+
= help: items from traits can only be used if the trait is in scope
8
+
= note: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
= help: items from traits can only be used if the trait is in scope; the following traits are implemented but not in scope, perhaps add a `use` for one of them:
18
+
= help: items from traits can only be used if the trait is in scope
19
+
= note: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
error[E0599]: no method named `method` found for type `Foo` in the current scope
@@ -60,7 +66,8 @@ error[E0599]: no method named `method` found for type `Foo` in the current scope
60
66
62 | Foo.method();
61
67
| ^^^^^^
62
68
|
63
-
= help: items from traits can only be used if the trait is implemented and in scope; the following traits define an item `method`, perhaps you need to implement one of them:
69
+
= help: items from traits can only be used if the trait is implemented and in scope
70
+
= note: the following traits define an item `method`, perhaps you need to implement one of them:
= help: items from traits can only be used if the trait is implemented and in scope; the following traits define an item `method`, perhaps you need to implement one of them:
84
+
= help: items from traits can only be used if the trait is implemented and in scope
85
+
= note: the following traits define an item `method`, perhaps you need to implement one of them:
@@ -88,7 +96,8 @@ error[E0599]: no method named `method2` found for type `u64` in the current scop
88
96
81 | 1u64.method2();
89
97
| ^^^^^^^
90
98
|
91
-
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method2`, perhaps you need to implement it:
99
+
= help: items from traits can only be used if the trait is implemented and in scope
100
+
= note: the following trait defines an item `method2`, perhaps you need to implement it:
92
101
candidate #1: `foo::Bar`
93
102
94
103
error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&u64>>` in the current scope
@@ -97,7 +106,8 @@ error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::bo
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method2`, perhaps you need to implement it:
109
+
= help: items from traits can only be used if the trait is implemented and in scope
110
+
= note: the following trait defines an item `method2`, perhaps you need to implement it:
101
111
candidate #1: `foo::Bar`
102
112
103
113
error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Foo` in the current scope
@@ -106,7 +116,8 @@ error[E0599]: no method named `method2` found for type `no_method_suggested_trai
106
116
90 | no_method_suggested_traits::Foo.method2();
107
117
| ^^^^^^^
108
118
|
109
-
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method2`, perhaps you need to implement it:
119
+
= help: items from traits can only be used if the trait is implemented and in scope
120
+
= note: the following trait defines an item `method2`, perhaps you need to implement it:
110
121
candidate #1: `foo::Bar`
111
122
112
123
error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>` in the current scope
@@ -115,7 +126,8 @@ error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::bo
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method2`, perhaps you need to implement it:
129
+
= help: items from traits can only be used if the trait is implemented and in scope
130
+
= note: the following trait defines an item `method2`, perhaps you need to implement it:
119
131
candidate #1: `foo::Bar`
120
132
121
133
error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Bar` in the current scope
@@ -124,7 +136,8 @@ error[E0599]: no method named `method2` found for type `no_method_suggested_trai
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method2`, perhaps you need to implement it:
139
+
= help: items from traits can only be used if the trait is implemented and in scope
140
+
= note: the following trait defines an item `method2`, perhaps you need to implement it:
128
141
candidate #1: `foo::Bar`
129
142
130
143
error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>` in the current scope
@@ -133,7 +146,8 @@ error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::bo
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method2`, perhaps you need to implement it:
149
+
= help: items from traits can only be used if the trait is implemented and in scope
150
+
= note: the following trait defines an item `method2`, perhaps you need to implement it:
137
151
candidate #1: `foo::Bar`
138
152
139
153
error[E0599]: no method named `method3` found for type `Foo` in the current scope
@@ -142,7 +156,8 @@ error[E0599]: no method named `method3` found for type `Foo` in the current scop
142
156
107 | Foo.method3();
143
157
| ^^^^^^^
144
158
|
145
-
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method3`, perhaps you need to implement it:
159
+
= help: items from traits can only be used if the trait is implemented and in scope
160
+
= note: the following trait defines an item `method3`, perhaps you need to implement it:
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method3`, perhaps you need to implement it:
169
+
= help: items from traits can only be used if the trait is implemented and in scope
170
+
= note: the following trait defines an item `method3`, perhaps you need to implement it:
error[E0599]: no method named `method3` found for type `Bar` in the current scope
@@ -160,7 +176,8 @@ error[E0599]: no method named `method3` found for type `Bar` in the current scop
160
176
115 | Bar::X.method3();
161
177
| ^^^^^^^
162
178
|
163
-
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method3`, perhaps you need to implement it:
179
+
= help: items from traits can only be used if the trait is implemented and in scope
180
+
= note: the following trait defines an item `method3`, perhaps you need to implement it:
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `method3`, perhaps you need to implement it:
189
+
= help: items from traits can only be used if the trait is implemented and in scope
190
+
= note: the following trait defines an item `method3`, perhaps you need to implement it:
Copy file name to clipboardExpand all lines: src/test/ui/span/issue-7575.stderr
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,8 @@ note: candidate #3 is defined in the trait `UnusedTrait`
23
23
29 | fn f9(usize) -> usize; //~ NOTE candidate
24
24
| ^^^^^^^^^^^^^^^^^^^^^^
25
25
= help: to disambiguate the method call, write `UnusedTrait::f9(u, 342)` instead
26
-
= help: items from traits can only be used if the trait is implemented and in scope; the following traits define an item `f9`, perhaps you need to implement one of them:
26
+
= help: items from traits can only be used if the trait is implemented and in scope
27
+
= note: the following traits define an item `f9`, perhaps you need to implement one of them:
27
28
candidate #1: `CtxtFn`
28
29
candidate #2: `OtherTrait`
29
30
candidate #3: `UnusedTrait`
@@ -58,7 +59,8 @@ note: candidate #1 is defined in the trait `ManyImplTrait`
58
59
59 | | }
59
60
| |_____^
60
61
= help: to disambiguate the method call, write `ManyImplTrait::is_str(t)` instead
61
-
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `is_str`, perhaps you need to implement it:
62
+
= help: items from traits can only be used if the trait is implemented and in scope
63
+
= note: the following trait defines an item `is_str`, perhaps you need to implement it:
0 commit comments