Sign in
fuchsia
/
third_party
/
rust
/
d5c7237400129c3b47bd79983ab65b0a38752367
/
.
/
tests
/
ui
/
impl-trait
/
issues
/
issue-87340.rs
blob: 705a4addcb704ebd873c84da0f3741fbc5e652e4 [
file
] [
log
] [
blame
]
#![
feature
(
impl_trait_in_assoc_type
)]
trait
X
{
type
I
;
fn
f
()
->
Self
::
I
;
}
impl
<
T
>
X
for
()
{
//~^ ERROR `T` is not constrained by the impl trait, self type, or predicates
type
I
=
impl
Sized
;
fn
f
()
->
Self
::
I
{}
}
fn
main
()
{}