]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error[E0282]: type annotations needed for `&T` |
0731742a | 2 | --> $DIR/issue-12187-2.rs:6:10 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | let &v = new(); |
ff7c6d11 XL |
5 | | -^ |
6 | | || | |
8faf50e0 | 7 | | |cannot infer type |
dc9dc135 | 8 | | consider giving this pattern the explicit type `&T`, with the type parameters specified |
ff7c6d11 XL |
9 | |
10 | error: aborting due to previous error | |
11 | ||
0531ce1d | 12 | For more information about this error, try `rustc --explain E0282`. |