Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
type-alias-impl-trait
/
issue-52843.rs
blob: b24959d7207200afdd2a19c2fce03982b42ee843 [
file
] [
log
] [
blame
]
#![
feature
(
type_alias_impl_trait
)]
type
Foo
<
T
>
=
impl
Default
;
//~^ ERROR: the trait bound `T: Default` is not satisfied
#[
allow
(
unused
)]
fn
foo
<
T
:
Default
>(
t
:
T
)
->
Foo
<
T
>
{
t
}
struct
NotDefault
;
fn
main
()
{
let
_
=
Foo
::<
NotDefault
>::
default
();
}