2019-03-12 21:27:10 -05:00
|
|
|
error: expected type, found `42`
|
|
|
|
--> $DIR/issue-34255-1.rs:8:24
|
|
|
|
|
|
|
|
|
LL | Test::Drill(field: 42);
|
2019-07-17 13:40:36 -05:00
|
|
|
| - ^^ expected type
|
|
|
|
| |
|
|
|
|
| tried to parse a type due to this type ascription
|
2019-03-12 21:27:10 -05:00
|
|
|
|
|
2019-07-15 16:23:39 -05:00
|
|
|
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
|
2020-02-07 06:07:02 -06:00
|
|
|
= note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
|
2019-03-12 21:27:10 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|