blob: d9aa272cc2e42c2207ca3343efc983483e5b9750 [file]
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`.