Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
type-alias-impl-trait
/
different_defining_uses.rs
blob: 2d7780a126cce954e1227f60ab7978747052302f [
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
{
//~ ERROR concrete type differs from previous
42i32
}