]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-34255-1.stderr
Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddyb
[rust.git] / src / test / ui / issues / issue-34255-1.stderr
index ea324302d40433130d6592e6a63fc6c6406a084b..01f395377701751b7d82e155c205c5154d52954f 100644 (file)
@@ -4,17 +4,12 @@ error: expected type, found `42`
 LL |     Test::Drill(field: 42);
    |                        ^^ expecting a type here because of type ascription
    |
-   = note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
-note: this expression is annotated with type ascription...
+   = note: #![feature(type_ascription)] lets you annotate an expression with a type: `<expr>: <type>`
+note: this expression expects an ascribed type after the colon
   --> $DIR/issue-34255-1.rs:8:17
    |
 LL |     Test::Drill(field: 42);
    |                 ^^^^^
-note: ...due to this, which is why a type is expected after
-  --> $DIR/issue-34255-1.rs:8:22
-   |
-LL |     Test::Drill(field: 42);
-   |                      ^
    = help: this might be indicative of a syntax error elsewhere
 
 error: aborting due to previous error