| error[E0282]: type annotations needed |
| --> $DIR/type-inference-unconstrained-none.rs:4:21 |
| | |
| LL | format!("{:?}", None); |
| | ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option` |
| | |
| help: consider specifying a concrete type for the type parameter `T` |
| | |
| LL | format!("{:?}", None::</* Type */>); |
| | ++++++++++++++ |
| |
| error[E0282]: type annotations needed |
| --> $DIR/type-inference-unconstrained-none.rs:8:5 |
| | |
| LL | None; |
| | ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option` |
| | |
| help: consider specifying a concrete type for the type parameter `T` |
| | |
| LL | None::</* Type */>; |
| | ++++++++++++++ |
| |
| error: aborting due to 2 previous errors |
| |
| For more information about this error, try `rustc --explain E0282`. |