Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
nested-tait-inference3.rs
blob: 3e7b8c80d1b2483628191ebc5a83d4263cb10708 [
file
] [
log
] [
blame
]
#![
feature
(
type_alias_impl_trait
)]
#![
allow
(
dead_code
)]
use
std
::
fmt
::
Debug
;
type
FooX
=
impl
Debug
;
trait
Foo
<
A
>
{}
impl
Foo
<
FooX
>
for
()
{}
#[
define_opaque
(
FooX
)]
fn
foo
()
->
impl
Foo
<
FooX
>
{
//~^ ERROR: item does not constrain
()
}
fn
main
()
{}