1 error[E0599]: no method named `method` found for type `u32` in the current scope
2 --> $DIR/no-method-suggested-traits.rs:33:10
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:
8 candidate #1: `use foo::Bar;`
9 candidate #2: `use no_method_suggested_traits::foo::PubPub;`
11 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&u32>>` in the current scope
12 --> $DIR/no-method-suggested-traits.rs:38:44
14 38 | std::rc::Rc::new(&mut Box::new(&1u32)).method();
17 = 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 candidate #1: `use foo::Bar;`
19 candidate #2: `use no_method_suggested_traits::foo::PubPub;`
21 error[E0599]: no method named `method` found for type `char` in the current scope
22 --> $DIR/no-method-suggested-traits.rs:44:9
27 = help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
28 candidate #1: `use foo::Bar;`
30 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&char>>` in the current scope
31 --> $DIR/no-method-suggested-traits.rs:48:43
33 48 | std::rc::Rc::new(&mut Box::new(&'a')).method();
36 = help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
37 candidate #1: `use foo::Bar;`
39 error[E0599]: no method named `method` found for type `i32` in the current scope
40 --> $DIR/no-method-suggested-traits.rs:53:10
45 = help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
46 candidate #1: `use no_method_suggested_traits::foo::PubPub;`
48 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&i32>>` in the current scope
49 --> $DIR/no-method-suggested-traits.rs:57:44
51 57 | std::rc::Rc::new(&mut Box::new(&1i32)).method();
54 = help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
55 candidate #1: `use no_method_suggested_traits::foo::PubPub;`
57 error[E0599]: no method named `method` found for type `Foo` in the current scope
58 --> $DIR/no-method-suggested-traits.rs:62:9
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:
64 candidate #1: `foo::Bar`
65 candidate #2: `no_method_suggested_traits::foo::PubPub`
66 candidate #3: `no_method_suggested_traits::bar::PubPriv`
67 candidate #4: `no_method_suggested_traits::qux::PrivPub`
68 candidate #5: `no_method_suggested_traits::quz::PrivPriv`
69 candidate #6: `no_method_suggested_traits::Reexported`
71 error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
72 --> $DIR/no-method-suggested-traits.rs:71:43
74 71 | std::rc::Rc::new(&mut Box::new(&Foo)).method();
77 = 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:
78 candidate #1: `foo::Bar`
79 candidate #2: `no_method_suggested_traits::foo::PubPub`
80 candidate #3: `no_method_suggested_traits::bar::PubPriv`
81 candidate #4: `no_method_suggested_traits::qux::PrivPub`
82 candidate #5: `no_method_suggested_traits::quz::PrivPriv`
83 candidate #6: `no_method_suggested_traits::Reexported`
85 error[E0599]: no method named `method2` found for type `u64` in the current scope
86 --> $DIR/no-method-suggested-traits.rs:81:10
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:
92 candidate #1: `foo::Bar`
94 error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&u64>>` in the current scope
95 --> $DIR/no-method-suggested-traits.rs:85:44
97 85 | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
100 = 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:
101 candidate #1: `foo::Bar`
103 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Foo` in the current scope
104 --> $DIR/no-method-suggested-traits.rs:90:37
106 90 | no_method_suggested_traits::Foo.method2();
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:
110 candidate #1: `foo::Bar`
112 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
113 --> $DIR/no-method-suggested-traits.rs:94:71
115 94 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
118 = 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 candidate #1: `foo::Bar`
121 error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Bar` in the current scope
122 --> $DIR/no-method-suggested-traits.rs:98:40
124 98 | no_method_suggested_traits::Bar::X.method2();
127 = 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:
128 candidate #1: `foo::Bar`
130 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
131 --> $DIR/no-method-suggested-traits.rs:102:74
133 102 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
136 = 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:
137 candidate #1: `foo::Bar`
139 error[E0599]: no method named `method3` found for type `Foo` in the current scope
140 --> $DIR/no-method-suggested-traits.rs:107:9
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:
146 candidate #1: `no_method_suggested_traits::foo::PubPub`
148 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
149 --> $DIR/no-method-suggested-traits.rs:111:43
151 111 | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
154 = 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:
155 candidate #1: `no_method_suggested_traits::foo::PubPub`
157 error[E0599]: no method named `method3` found for type `Bar` in the current scope
158 --> $DIR/no-method-suggested-traits.rs:115:12
160 115 | Bar::X.method3();
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:
164 candidate #1: `no_method_suggested_traits::foo::PubPub`
166 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Bar>>` in the current scope
167 --> $DIR/no-method-suggested-traits.rs:119:46
169 119 | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
172 = 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:
173 candidate #1: `no_method_suggested_traits::foo::PubPub`
175 error[E0599]: no method named `method3` found for type `usize` in the current scope
176 --> $DIR/no-method-suggested-traits.rs:125:13
178 125 | 1_usize.method3(); //~ ERROR no method named
181 error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&usize>>` in the current scope
182 --> $DIR/no-method-suggested-traits.rs:126:47
184 126 | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); //~ ERROR no method named
187 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Foo` in the current scope
188 --> $DIR/no-method-suggested-traits.rs:127:37
190 127 | no_method_suggested_traits::Foo.method3(); //~ ERROR no method named
193 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
194 --> $DIR/no-method-suggested-traits.rs:128:71
196 128 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
199 error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Bar` in the current scope
200 --> $DIR/no-method-suggested-traits.rs:130:40
202 130 | no_method_suggested_traits::Bar::X.method3(); //~ ERROR no method named
205 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
206 --> $DIR/no-method-suggested-traits.rs:131:74
208 131 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
211 error: aborting due to previous error(s)