Sign in
rust
/
rust
/
4d2f9ca08dfd4f248bbbaaa8d7708412129b28e9
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
incomplete-inference.rs
blob: 70acb1870e22346fa82dc0cff9a7bb44813a5816 [
file
]
#![
feature
(
type_alias_impl_trait
)]
type
Foo
=
impl
Sized
;
#[
define_opaque
(
Foo
)]
fn
bar
()
->
Foo
{
None
//~^ ERROR: type annotations needed [E0282]
}
#[
define_opaque
(
Foo
)]
fn
baz
()
->
Foo
{
Some
(())
}
fn
main
()
{}