Sign in
fuchsia
/
third_party
/
rust
/
03534ac8b70de1134ce7e91b172cd629048a6c8b
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
different_defining_uses.rs
blob: 4505c4d95248c3d35eecf70e8dc38ee2145da482 [
file
] [
log
] [
blame
]
#![
feature
(
type_alias_impl_trait
)]
fn
main
()
{}
// two definitions with different types
type
Foo
=
impl
std
::
fmt
::
Debug
;
fn
foo
()
->
Foo
{
""
}
fn
bar
()
->
Foo
{
42i32
//~^ ERROR concrete type differs from previous
}