blob: e2fc9c6d2d88e3d5449b1a34c3b3cc34b8da0537 [file] [log] [blame] [edit]
error[E0599]: no method named `method` found for reference `&_` in the current scope
--> $DIR/would-constrain-opaque.rs:29:11
|
LL | x.method();
| ^^^^^^ method not found in `&_`
|
= help: items from traits can only be used if the trait is implemented and in scope
help: trait `Trait` which provides `method` is implemented but not in scope; perhaps you want to import it
|
LL + use Trait;
|
error[E0599]: no method named `method` found for reference `&_` in the current scope
--> $DIR/would-constrain-opaque.rs:31:11
|
LL | x.method();
| ^^^^^^ method not found in `&_`
|
= help: items from traits can only be used if the trait is implemented and in scope
help: trait `Trait` which provides `method` is implemented but not in scope; perhaps you want to import it
|
LL + use Trait;
|
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0599`.