]> git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/no-method-suggested-traits.stderr
New upstream version 1.20.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / no-method-suggested-traits.stderr
1 error[E0599]: no method named `method` found for type `u32` in the current scope
2 --> $DIR/no-method-suggested-traits.rs:33:10
3 |
4 33 | 1u32.method();
5 | ^^^^^^
6 |
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:
9 candidate #1: `use foo::Bar;`
10 candidate #2: `use no_method_suggested_traits::foo::PubPub;`
11
12 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&u32>>` in the current scope
13 --> $DIR/no-method-suggested-traits.rs:38:44
14 |
15 38 | std::rc::Rc::new(&mut Box::new(&1u32)).method();
16 | ^^^^^^
17 |
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:
20 candidate #1: `use foo::Bar;`
21 candidate #2: `use no_method_suggested_traits::foo::PubPub;`
22
23 error[E0599]: no method named `method` found for type `char` in the current scope
24 --> $DIR/no-method-suggested-traits.rs:44:9
25 |
26 44 | 'a'.method();
27 | ^^^^^^
28 |
29 = help: items from traits can only be used if the trait is in scope
30 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
31 candidate #1: `use foo::Bar;`
32
33 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&char>>` in the current scope
34 --> $DIR/no-method-suggested-traits.rs:48:43
35 |
36 48 | std::rc::Rc::new(&mut Box::new(&'a')).method();
37 | ^^^^^^
38 |
39 = help: items from traits can only be used if the trait is in scope
40 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
41 candidate #1: `use foo::Bar;`
42
43 error[E0599]: no method named `method` found for type `i32` in the current scope
44 --> $DIR/no-method-suggested-traits.rs:53:10
45 |
46 53 | 1i32.method();
47 | ^^^^^^
48 |
49 = help: items from traits can only be used if the trait is in scope
50 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
51 candidate #1: `use no_method_suggested_traits::foo::PubPub;`
52
53 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&i32>>` in the current scope
54 --> $DIR/no-method-suggested-traits.rs:57:44
55 |
56 57 | std::rc::Rc::new(&mut Box::new(&1i32)).method();
57 | ^^^^^^
58 |
59 = help: items from traits can only be used if the trait is in scope
60 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
61 candidate #1: `use no_method_suggested_traits::foo::PubPub;`
62
63 error[E0599]: no method named `method` found for type `Foo` in the current scope
64 --> $DIR/no-method-suggested-traits.rs:62:9
65 |
66 62 | Foo.method();
67 | ^^^^^^
68 |
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:
71 candidate #1: `foo::Bar`
72 candidate #2: `no_method_suggested_traits::foo::PubPub`
73 candidate #3: `no_method_suggested_traits::bar::PubPriv`
74 candidate #4: `no_method_suggested_traits::qux::PrivPub`
75 candidate #5: `no_method_suggested_traits::quz::PrivPriv`
76 candidate #6: `no_method_suggested_traits::Reexported`
77
78 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
79 --> $DIR/no-method-suggested-traits.rs:71:43
80 |
81 71 | std::rc::Rc::new(&mut Box::new(&Foo)).method();
82 | ^^^^^^
83 |
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:
86 candidate #1: `foo::Bar`
87 candidate #2: `no_method_suggested_traits::foo::PubPub`
88 candidate #3: `no_method_suggested_traits::bar::PubPriv`
89 candidate #4: `no_method_suggested_traits::qux::PrivPub`
90 candidate #5: `no_method_suggested_traits::quz::PrivPriv`
91 candidate #6: `no_method_suggested_traits::Reexported`
92
93 error[E0599]: no method named `method2` found for type `u64` in the current scope
94 --> $DIR/no-method-suggested-traits.rs:81:10
95 |
96 81 | 1u64.method2();
97 | ^^^^^^^
98 |
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:
101 candidate #1: `foo::Bar`
102
103 error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&u64>>` in the current scope
104 --> $DIR/no-method-suggested-traits.rs:85:44
105 |
106 85 | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
107 | ^^^^^^^
108 |
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:
111 candidate #1: `foo::Bar`
112
113 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Foo` in the current scope
114 --> $DIR/no-method-suggested-traits.rs:90:37
115 |
116 90 | no_method_suggested_traits::Foo.method2();
117 | ^^^^^^^
118 |
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:
121 candidate #1: `foo::Bar`
122
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
124 --> $DIR/no-method-suggested-traits.rs:94:71
125 |
126 94 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
127 | ^^^^^^^
128 |
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:
131 candidate #1: `foo::Bar`
132
133 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Bar` in the current scope
134 --> $DIR/no-method-suggested-traits.rs:98:40
135 |
136 98 | no_method_suggested_traits::Bar::X.method2();
137 | ^^^^^^^
138 |
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:
141 candidate #1: `foo::Bar`
142
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
144 --> $DIR/no-method-suggested-traits.rs:102:74
145 |
146 102 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
147 | ^^^^^^^
148 |
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:
151 candidate #1: `foo::Bar`
152
153 error[E0599]: no method named `method3` found for type `Foo` in the current scope
154 --> $DIR/no-method-suggested-traits.rs:107:9
155 |
156 107 | Foo.method3();
157 | ^^^^^^^
158 |
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:
161 candidate #1: `no_method_suggested_traits::foo::PubPub`
162
163 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
164 --> $DIR/no-method-suggested-traits.rs:111:43
165 |
166 111 | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
167 | ^^^^^^^
168 |
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:
171 candidate #1: `no_method_suggested_traits::foo::PubPub`
172
173 error[E0599]: no method named `method3` found for type `Bar` in the current scope
174 --> $DIR/no-method-suggested-traits.rs:115:12
175 |
176 115 | Bar::X.method3();
177 | ^^^^^^^
178 |
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:
181 candidate #1: `no_method_suggested_traits::foo::PubPub`
182
183 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Bar>>` in the current scope
184 --> $DIR/no-method-suggested-traits.rs:119:46
185 |
186 119 | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
187 | ^^^^^^^
188 |
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:
191 candidate #1: `no_method_suggested_traits::foo::PubPub`
192
193 error[E0599]: no method named `method3` found for type `usize` in the current scope
194 --> $DIR/no-method-suggested-traits.rs:125:13
195 |
196 125 | 1_usize.method3(); //~ ERROR no method named
197 | ^^^^^^^
198
199 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&usize>>` in the current scope
200 --> $DIR/no-method-suggested-traits.rs:126:47
201 |
202 126 | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); //~ ERROR no method named
203 | ^^^^^^^
204
205 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Foo` in the current scope
206 --> $DIR/no-method-suggested-traits.rs:127:37
207 |
208 127 | no_method_suggested_traits::Foo.method3(); //~ ERROR no method named
209 | ^^^^^^^
210
211 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Foo>>` in the current scope
212 --> $DIR/no-method-suggested-traits.rs:128:71
213 |
214 128 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
215 | ^^^^^^^
216
217 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Bar` in the current scope
218 --> $DIR/no-method-suggested-traits.rs:130:40
219 |
220 130 | no_method_suggested_traits::Bar::X.method3(); //~ ERROR no method named
221 | ^^^^^^^
222
223 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&no_method_suggested_traits::Bar>>` in the current scope
224 --> $DIR/no-method-suggested-traits.rs:131:74
225 |
226 131 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
227 | ^^^^^^^
228
229 error: aborting due to 24 previous errors
230