]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23589.stderr
Rollup merge of #98137 - michaelwoerister:fix-unsized-rc-arc-natvis, r=wesleywiser
[rust.git] / src / test / ui / issues / issue-23589.stderr
1 error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2   --> $DIR/issue-23589.rs:2:12
3    |
4 LL |     let v: Vec(&str) = vec!['1', '2'];
5    |            ^^^^^^^^^ only `Fn` traits may use parentheses
6    |
7 help: use angle brackets instead
8    |
9 LL |     let v: Vec<&str> = vec!['1', '2'];
10    |               ~    ~
11
12 error[E0308]: mismatched types
13   --> $DIR/issue-23589.rs:2:29
14    |
15 LL |     let v: Vec(&str) = vec!['1', '2'];
16    |                             ^^^ expected `&str`, found `char`
17    |
18 help: if you meant to write a `str` literal, use double quotes
19    |
20 LL |     let v: Vec(&str) = vec!["1", '2'];
21    |                             ~~~
22
23 error: aborting due to 2 previous errors
24
25 Some errors have detailed explanations: E0214, E0308.
26 For more information about an error, try `rustc --explain E0214`.