]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/error-codes/E0283.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0283.stderr
index 2f0dfb6dd8248e8093fb75036b175f9b4fdb4863..b6078e302360612b8f7c218c8942345c99b57957 100644 (file)
@@ -1,13 +1,15 @@
 error[E0283]: type annotations needed
   --> $DIR/E0283.rs:30:21
    |
-LL |     fn create() -> u32;
-   |     ------------------- required by `Generator::create`
-...
 LL |     let cont: u32 = Generator::create();
    |                     ^^^^^^^^^^^^^^^^^ cannot infer type
    |
    = note: cannot satisfy `_: Generator`
+note: required by `Generator::create`
+  --> $DIR/E0283.rs:2:5
+   |
+LL |     fn create() -> u32;
+   |     ^^^^^^^^^^^^^^^^^^^
 
 error[E0283]: type annotations needed
   --> $DIR/E0283.rs:35:24