]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type/ascription/issue-47666.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / type / ascription / issue-47666.stderr
CommitLineData
416331ca
XL
1error: expected type, found reserved keyword `box`
2 --> $DIR/issue-47666.rs:2:25
3 |
4LL | let _ = Option:Some(vec![0, 1]);
5 | - ^^^^^^^^^^
6 | | |
7 | | expected type
8 | | in this macro invocation
9 | | this macro call doesn't expand to a type
10 | help: maybe write a path separator here: `::`
11 |
12 = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
74b04a01
XL
13 = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
14 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
416331ca 15
ba9703b0
XL
16error[E0423]: expected value, found enum `Option`
17 --> $DIR/issue-47666.rs:2:13
18 |
19LL | let _ = Option:Some(vec![0, 1]);
20 | ^^^^^^
21 |
22help: try using one of the enum's variants
23 |
24LL | let _ = std::option::Option::None:Some(vec![0, 1]);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^
26LL | let _ = std::option::Option::Some:Some(vec![0, 1]);
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^
28
29error[E0573]: expected type, found variant `Some`
30 --> $DIR/issue-47666.rs:2:20
31 |
32LL | let _ = Option:Some(vec![0, 1]);
33 | ^^^^^^^^^^^^^^^^ not a type
34 |
35help: try using the variant's enum
36 |
37LL | let _ = Option:std::option::Option;
38 | ^^^^^^^^^^^^^^^^^^^
39help: maybe you meant to write a path separator here
40 |
41LL | let _ = Option::Some(vec![0, 1]);
42 | ^^
43
44error: aborting due to 3 previous errors
416331ca 45
ba9703b0
XL
46Some errors have detailed explanations: E0423, E0573.
47For more information about an error, try `rustc --explain E0423`.