Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
incomplete-inference.rs
blob: 70acb1870e22346fa82dc0cff9a7bb44813a5816 [
file
] [
log
] [
blame
]
#![
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
()
{}