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