]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/ascription/issue-34255-1.stderr
Rollup merge of #85963 - m-ou-se:constructor-type-name, r=yaahc
[rust.git] / src / test / ui / type / ascription / issue-34255-1.stderr
1 error[E0425]: cannot find value `input_cells` in this scope
2   --> $DIR/issue-34255-1.rs:7:9
3    |
4 LL |         input_cells: Vec::new()
5    |         ^^^^^^^^^^^ a field by this name exists in `Self`
6
7 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
8   --> $DIR/issue-34255-1.rs:7:27
9    |
10 LL |         input_cells: Vec::new()
11    |                           ^^^^^ only `Fn` traits may use parentheses
12
13 error[E0107]: missing generics for struct `Vec`
14   --> $DIR/issue-34255-1.rs:7:22
15    |
16 LL |         input_cells: Vec::new()
17    |                      ^^^ expected at least 1 generic argument
18    |
19 note: struct defined here, with at least 1 generic parameter: `T`
20   --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
21    |
22 LL | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
23    |            ^^^ -
24 help: add missing generic argument
25    |
26 LL |         input_cells: Vec<T>::new()
27    |                      ^^^^^^
28
29 error: aborting due to 3 previous errors
30
31 Some errors have detailed explanations: E0107, E0214, E0425.
32 For more information about an error, try `rustc --explain E0107`.