]>
Commit | Line | Data |
---|---|---|
416331ca XL |
1 | error: expected type, found reserved keyword `box` |
2 | --> $DIR/issue-47666.rs:2:25 | |
3 | | | |
4 | LL | 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 |
16 | error[E0423]: expected value, found enum `Option` |
17 | --> $DIR/issue-47666.rs:2:13 | |
18 | | | |
19 | LL | let _ = Option:Some(vec![0, 1]); | |
20 | | ^^^^^^ | |
21 | | | |
22 | help: try using one of the enum's variants | |
23 | | | |
24 | LL | let _ = std::option::Option::None:Some(vec![0, 1]); | |
25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
26 | LL | let _ = std::option::Option::Some:Some(vec![0, 1]); | |
27 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
28 | ||
29 | error[E0573]: expected type, found variant `Some` | |
30 | --> $DIR/issue-47666.rs:2:20 | |
31 | | | |
32 | LL | let _ = Option:Some(vec![0, 1]); | |
33 | | ^^^^^^^^^^^^^^^^ not a type | |
34 | | | |
35 | help: try using the variant's enum | |
36 | | | |
37 | LL | let _ = Option:std::option::Option; | |
38 | | ^^^^^^^^^^^^^^^^^^^ | |
39 | help: maybe you meant to write a path separator here | |
40 | | | |
41 | LL | let _ = Option::Some(vec![0, 1]); | |
42 | | ^^ | |
43 | ||
44 | error: aborting due to 3 previous errors | |
416331ca | 45 | |
ba9703b0 XL |
46 | Some errors have detailed explanations: E0423, E0573. |
47 | For more information about an error, try `rustc --explain E0423`. |