Sign in
fuchsia
/
third_party
/
rust
/
a678e3191197f145451c97c6cc884e15cae38186
/
.
/
src
/
test
/
ui
/
type-alias-impl-trait
/
type-alias-impl-trait-with-no-traits.rs
blob: 8ca279eec921b114ac74d188db0f3eb0ba62b04f [
file
] [
log
] [
blame
]
#![
feature
(
type_alias_impl_trait
)]
type
Foo
=
impl
'
static
;
//~^ ERROR: at least one trait must be specified
fn
foo
()
->
Foo
{
"foo"
}
fn
bar
()
->
impl
'
static
{
//~ ERROR: at least one trait must be specified
"foo"
}
fn
main
()
{}