]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/type-ascription-instead-of-initializer.stderr
Auto merge of #52404 - felixrabe:doc-link-ch19-04-typo, r=GuillaumeGomez
[rust.git] / src / test / ui / suggestions / type-ascription-instead-of-initializer.stderr
1 error: expected type, found `10`
2   --> $DIR/type-ascription-instead-of-initializer.rs:12:31
3    |
4 LL |     let x: Vec::with_capacity(10, 20);  //~ ERROR expected type, found `10`
5    |         --                    ^^
6    |         ||
7    |         |help: use `=` if you meant to assign
8    |         while parsing the type for `x`
9
10 error[E0061]: this function takes 1 parameter but 2 parameters were supplied
11   --> $DIR/type-ascription-instead-of-initializer.rs:12:12
12    |
13 LL |     let x: Vec::with_capacity(10, 20);  //~ ERROR expected type, found `10`
14    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0061`.