Sign in
rust
/
rust
/
526a91cbcc4601b92b0587405015e07b9c0d79f6
/
.
/
tests
/
ui
/
type-inference
/
type-inference-unconstrained-none.rs
blob: 5b24e866b5216bb9d7ee97e027d24a599556c1ec [
file
] [
log
] [
blame
]
//! Regression test for <https://github.com/rust-lang/rust/issues/5062>.
fn
foo
()
{
format
!(
"{:?}"
,
None
);
//~ ERROR type annotations needed [E0282]
}
fn
main
()
{
None
;
//~ ERROR type annotations needed [E0282]
}