]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/issue-21153.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / parser / issue-21153.stderr
index 6e20a9ce3c432758dce2169fae1565662c1de912..cbfa9ded3c3939ec4096242b235f6ac06a67ce70 100644 (file)
@@ -1,10 +1,13 @@
-error: missing `fn`, `type`, or `const` for associated-item declaration
-  --> $DIR/issue-21153.rs:1:29
+error: expected one of `!` or `::`, found `=`
+  --> $DIR/issue-21153.rs:2:10
    |
-LL |   trait MyTrait<T>: Iterator {
-   |  _____________________________^
-LL | |     Item = T;
-   | |____^ missing `fn`, `type`, or `const`
+LL | trait MyTrait<T>: Iterator {
+   |                            - while parsing this item list starting here
+LL |     Item = T;
+   |          ^ expected one of `!` or `::`
+LL |
+LL | }
+   | - the item list ends here
 
 error: aborting due to previous error