2017-06-02 12:15:13 -05:00
|
|
|
error[E0599]: no method named `method` found for type `u32` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:23:10
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 1u32.method();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^ method not found in `u32`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2019-09-29 18:58:05 -05:00
|
|
|
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use foo::Bar;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::Reexported;
|
2021-10-01 13:09:31 -05:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::foo::PubPub;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::qux::PrivPub;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method` found for struct `Rc<&mut Box<&u32>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:26:44
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&1u32)).method();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^ method not found in `Rc<&mut Box<&u32>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2019-09-29 18:58:05 -05:00
|
|
|
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use foo::Bar;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::Reexported;
|
2021-10-01 13:09:31 -05:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::foo::PubPub;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::qux::PrivPub;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `char` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:30:9
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2021-04-23 20:24:02 -05:00
|
|
|
LL | fn method(&self) {}
|
|
|
|
| ------ the method is available for `char` here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 'a'.method();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^ method not found in `char`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2019-09-29 18:58:05 -05:00
|
|
|
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use foo::Bar;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method` found for struct `Rc<&mut Box<&char>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:32:43
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&'a')).method();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^ method not found in `Rc<&mut Box<&char>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2019-09-29 18:58:05 -05:00
|
|
|
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use foo::Bar;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method` found for type `i32` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:35:10
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 1i32.method();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^ method not found in `i32`
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2021-04-23 20:24:02 -05:00
|
|
|
::: $DIR/auxiliary/no_method_suggested_traits.rs:8:12
|
|
|
|
|
|
|
|
|
LL | fn method(&self) {}
|
|
|
|
| ------ the method is available for `i32` here
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2019-09-29 18:58:05 -05:00
|
|
|
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::foo::PubPub;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method` found for struct `Rc<&mut Box<&i32>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:37:44
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&1i32)).method();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^ method not found in `Rc<&mut Box<&i32>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2019-09-29 18:58:05 -05:00
|
|
|
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use no_method_suggested_traits::foo::PubPub;
|
2017-11-16 06:14:22 -06:00
|
|
|
|
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no method named `method` found for struct `Foo` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:40:9
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Foo;
|
2022-07-01 18:47:26 -05:00
|
|
|
| ---------- method `method` not found for this struct
|
2017-11-16 00:18:52 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Foo.method();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^ method not found in `Foo`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
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`
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #2: `PubPub`
|
2018-01-17 22:15:13 -06:00
|
|
|
candidate #3: `no_method_suggested_traits::qux::PrivPub`
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #4: `Reexported`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method` found for struct `Rc<&mut Box<&Foo>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:42:43
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&Foo)).method();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^ method not found in `Rc<&mut Box<&Foo>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
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`
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #2: `PubPub`
|
2018-01-17 22:15:13 -06:00
|
|
|
candidate #3: `no_method_suggested_traits::qux::PrivPub`
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #4: `Reexported`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method2` found for type `u64` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:45:10
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 1u64.method2();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^^ method not found in `u64`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2020-02-24 20:55:51 -06:00
|
|
|
note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub trait Bar {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&u64>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:47:44
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&1u64)).method2();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&u64>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2020-02-24 20:55:51 -06:00
|
|
|
note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub trait Bar {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method2` found for struct `no_method_suggested_traits::Foo` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:50:37
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | no_method_suggested_traits::Foo.method2();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Foo`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2020-02-24 20:55:51 -06:00
|
|
|
note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub trait Bar {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:52:71
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method2();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&Foo>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2020-02-24 20:55:51 -06:00
|
|
|
note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub trait Bar {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method2` found for enum `no_method_suggested_traits::Bar` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:54:40
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | no_method_suggested_traits::Bar::X.method2();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Bar`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
2017-06-03 19:06:46 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2020-02-24 20:55:51 -06:00
|
|
|
note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub trait Bar {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method2` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:56:74
|
2017-11-20 06:13:27 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method2();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&Bar>>`
|
2017-11-20 06:13:27 -06:00
|
|
|
|
|
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2020-02-24 20:55:51 -06:00
|
|
|
note: `foo::Bar` defines an item `method2`, perhaps you need to implement it
|
|
|
|
--> $DIR/no-method-suggested-traits.rs:8:5
|
|
|
|
|
|
|
|
|
LL | pub trait Bar {
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no method named `method3` found for struct `Foo` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:59:9
|
2017-11-20 06:13:27 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct Foo;
|
2022-07-01 18:47:26 -05:00
|
|
|
| ---------- method `method3` not found for this struct
|
2017-11-16 00:18:52 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Foo.method3();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^^ method not found in `Foo`
|
2017-11-20 06:13:27 -06: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:
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #1: `PubPub`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Foo>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:61:43
|
2017-11-20 06:13:27 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&Foo)).method3();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&Foo>>`
|
2017-11-20 06:13:27 -06: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:
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #1: `PubPub`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no method named `method3` found for enum `Bar` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:63:12
|
2017-11-20 06:13:27 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | enum Bar { X }
|
2022-07-01 18:47:26 -05:00
|
|
|
| -------- method `method3` not found for this enum
|
2017-11-16 00:18:52 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Bar::X.method3();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^^ method not found in `Bar`
|
2017-11-20 06:13:27 -06: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:
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #1: `PubPub`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&Bar>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:65:46
|
2017-11-20 06:13:27 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&Bar::X)).method3();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&Bar>>`
|
2017-11-20 06:13:27 -06: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:
|
2020-09-02 02:40:56 -05:00
|
|
|
candidate #1: `PubPub`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
|
|
|
error[E0599]: no method named `method3` found for type `usize` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:69:13
|
2017-12-10 14:29:24 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1_usize.method3();
|
2019-09-06 14:00:07 -05:00
|
|
|
| ^^^^^^^ method not found in `usize`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&usize>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:70:47
|
2017-12-10 14:29:24 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&1_usize)).method3();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&usize>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method3` found for struct `no_method_suggested_traits::Foo` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:71:37
|
2017-12-10 14:29:24 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | no_method_suggested_traits::Foo.method3();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Foo`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Foo>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:72:71
|
2017-12-10 14:29:24 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Foo)).method3();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&Foo>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method3` found for enum `no_method_suggested_traits::Bar` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:74:40
|
2017-12-10 14:29:24 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | no_method_suggested_traits::Bar::X.method3();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Bar`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2023-01-06 13:21:47 -06:00
|
|
|
error[E0599]: no method named `method3` found for struct `Rc<&mut Box<&no_method_suggested_traits::Bar>>` in the current scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/no-method-suggested-traits.rs:75:74
|
2017-12-10 14:29:24 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | std::rc::Rc::new(&mut Box::new(&no_method_suggested_traits::Bar::X)).method3();
|
2022-12-13 18:57:34 -06:00
|
|
|
| ^^^^^^^ method not found in `Rc<&mut Box<&Bar>>`
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2017-07-02 08:09:09 -05:00
|
|
|
error: aborting due to 24 previous errors
|
2017-06-02 12:15:13 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0599`.
|