summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0283.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0283.stderr')
-rw-r--r--tests/ui/error-codes/E0283.stderr10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/error-codes/E0283.stderr b/tests/ui/error-codes/E0283.stderr
index 90316c6e9..6008809f0 100644
--- a/tests/ui/error-codes/E0283.stderr
+++ b/tests/ui/error-codes/E0283.stderr
@@ -2,15 +2,15 @@ error[E0790]: cannot call associated function on trait without specifying the co
--> $DIR/E0283.rs:30:21
|
LL | fn create() -> u32;
- | ------------------- `Generator::create` defined here
+ | ------------------- `Coroutine::create` defined here
...
-LL | let cont: u32 = Generator::create();
+LL | let cont: u32 = Coroutine::create();
| ^^^^^^^^^^^^^^^^^ cannot call associated function of trait
|
-help: use a fully-qualified path to a specific available implementation (2 found)
+help: use a fully-qualified path to a specific available implementation
|
-LL | let cont: u32 = <Impl as Generator>::create();
- | ++++++++ +
+LL | let cont: u32 = </* self type */ as Coroutine>::create();
+ | +++++++++++++++++++ +
error[E0283]: type annotations needed
--> $DIR/E0283.rs:35:24