2019-06-01 16:47:15 -05:00
|
|
|
error[E0282]: type annotations needed for `&[_; 0]`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-7813.rs:2:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let v = &[];
|
2018-07-18 14:35:20 -05:00
|
|
|
| - ^^^ cannot infer type
|
2017-12-10 13:47:55 -06:00
|
|
|
| |
|
2019-06-01 17:33:31 -05:00
|
|
|
| consider giving `v` the explicit type `&[_; 0]`, with the type parameters specified
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0282`.
|