2017-06-02 12:15:13 -05:00
|
|
|
error[E0599]: no method named `method` found for type `u32` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:33:10
|
|
|
|
|
|
|
|
|
33 | 1u32.method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2017-11-16 06:14:22 -06:00
|
|
|
help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
|
|
|
|
|
|
|
|
|
14 | use foo::Bar;
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::foo::PubPub;
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::qux::PrivPub;
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::Reexported;
|
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&u32>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:38:44
|
|
|
|
|
|
|
|
|
38 | std::rc::Rc::new(&mut Box::new(&1u32)).method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2017-11-16 06:14:22 -06:00
|
|
|
help: the following traits are implemented but not in scope, perhaps add a `use` for one of them:
|
|
|
|
|
|
|
|
|
14 | use foo::Bar;
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::foo::PubPub;
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::qux::PrivPub;
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::Reexported;
|
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `char` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:44:9
|
|
|
|
|
|
|
|
|
44 | 'a'.method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2017-11-16 06:14:22 -06:00
|
|
|
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
|
|
|
|
|
|
|
|
|
14 | use foo::Bar;
|
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&char>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:48:43
|
|
|
|
|
|
|
|
|
48 | std::rc::Rc::new(&mut Box::new(&'a')).method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2017-11-16 06:14:22 -06:00
|
|
|
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
|
|
|
|
|
|
|
|
|
14 | use foo::Bar;
|
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `i32` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:53:10
|
|
|
|
|
|
|
|
|
53 | 1i32.method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2017-11-16 06:14:22 -06:00
|
|
|
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::foo::PubPub;
|
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&i32>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:57:44
|
|
|
|
|
|
|
|
|
57 | std::rc::Rc::new(&mut Box::new(&1i32)).method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2017-11-16 06:14:22 -06:00
|
|
|
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
|
|
|
|
|
|
|
|
|
14 | use no_method_suggested_traits::foo::PubPub;
|
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `Foo` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:62:9
|
|
|
|
|
|
2017-11-16 00:18:52 -06:00
|
|
|
14 | struct Foo;
|
|
|
|
| ----------- method `method` not found for this
|
|
|
|
...
|
2017-06-02 12:15:13 -05:00
|
|
|
62 | Foo.method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following traits define an item `method`, perhaps you need to implement one of them:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
candidate #2: `no_method_suggested_traits::foo::PubPub`
|
|
|
|
candidate #3: `no_method_suggested_traits::bar::PubPriv`
|
|
|
|
candidate #4: `no_method_suggested_traits::qux::PrivPub`
|
|
|
|
candidate #5: `no_method_suggested_traits::quz::PrivPriv`
|
|
|
|
candidate #6: `no_method_suggested_traits::Reexported`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:71:43
|
|
|
|
|
|
|
|
|
71 | std::rc::Rc::new(&mut Box::new(&Foo)).method();
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following traits define an item `method`, perhaps you need to implement one of them:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
candidate #2: `no_method_suggested_traits::foo::PubPub`
|
|
|
|
candidate #3: `no_method_suggested_traits::bar::PubPriv`
|
|
|
|
candidate #4: `no_method_suggested_traits::qux::PrivPub`
|
|
|
|
candidate #5: `no_method_suggested_traits::quz::PrivPriv`
|
|
|
|
candidate #6: `no_method_suggested_traits::Reexported`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method2` found for type `u64` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:81:10
|
|
|
|
|
|
|
|
|
81 | 1u64.method2();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method2`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method2` found for type `std::rc::Rc<&mut std::boxed::Box<&u64>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:85:44
|
|
|
|
|
|
|
|
|
85 | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method2`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Foo` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:90:37
|
|
|
|
|
|
|
|
|
90 | no_method_suggested_traits::Foo.method2();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method2`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:94:71
|
|
|
|
|
|
|
|
|
94 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method2`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method2` found for type `no_method_suggested_traits::Bar` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:98:40
|
|
|
|
|
|
|
|
|
98 | no_method_suggested_traits::Bar::X.method2();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method2`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:102:74
|
|
|
|
|
|
|
|
|
102 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method2`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `foo::Bar`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `Foo` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:107:9
|
|
|
|
|
|
2017-11-16 00:18:52 -06:00
|
|
|
14 | struct Foo;
|
|
|
|
| ----------- method `method3` not found for this
|
|
|
|
...
|
2017-06-02 12:15:13 -05:00
|
|
|
107 | Foo.method3();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method3`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `no_method_suggested_traits::foo::PubPub`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Foo>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:111:43
|
|
|
|
|
|
|
|
|
111 | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method3`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `no_method_suggested_traits::foo::PubPub`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `Bar` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:115:12
|
|
|
|
|
|
2017-11-16 00:18:52 -06:00
|
|
|
15 | enum Bar { X }
|
2017-11-16 11:20:51 -06:00
|
|
|
| -------- method `method3` not found for this
|
2017-11-16 00:18:52 -06:00
|
|
|
...
|
2017-06-02 12:15:13 -05:00
|
|
|
115 | Bar::X.method3();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method3`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `no_method_suggested_traits::foo::PubPub`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&Bar>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:119:46
|
|
|
|
|
|
|
|
|
119 | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
= note: the following trait defines an item `method3`, perhaps you need to implement it:
|
2017-06-02 12:15:13 -05:00
|
|
|
candidate #1: `no_method_suggested_traits::foo::PubPub`
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `usize` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:125:13
|
|
|
|
|
|
|
|
|
125 | 1_usize.method3(); //~ ERROR no method named
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `std::rc::Rc<&mut std::boxed::Box<&usize>>` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:126:47
|
|
|
|
|
|
|
|
|
126 | std::rc::Rc::new(&mut Box::new(&1_usize)).method3(); //~ ERROR no method named
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Foo` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:127:37
|
|
|
|
|
|
|
|
|
127 | no_method_suggested_traits::Foo.method3(); //~ ERROR no method named
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:128:71
|
|
|
|
|
|
|
|
|
128 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `no_method_suggested_traits::Bar` in the current scope
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:130:40
|
|
|
|
|
|
|
|
|
130 | no_method_suggested_traits::Bar::X.method3(); //~ ERROR no method named
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:131:74
|
|
|
|
|
|
|
|
|
131 | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2017-07-02 08:09:09 -05:00
|
|
|
error: aborting due to 24 previous errors
|
2017-06-02 12:15:13 -05:00
|
|
|
|