Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type::AssociatedType::AssociatedType doesn't resolve #22138

Closed
huonw opened this issue Feb 10, 2015 · 1 comment
Closed

Type::AssociatedType::AssociatedType doesn't resolve #22138

huonw opened this issue Feb 10, 2015 · 1 comment
Labels
A-associated-items Area: Associated items (types, constants & functions)

Comments

@huonw
Copy link
Member

huonw commented Feb 10, 2015

trait Foo {
    type X;
}
trait Bar {
    type Y;
}

fn foo<T>(_: T::X::Y) 
    where T: Foo,
          T::X: Bar,
{}
<anon>:8:14: 8:21 error: failed to resolve. Use of undeclared type or module `T::X`
<anon>:8 fn foo<T>(_: T::X::Y) 
                      ^~~~~~~
<anon>:8:14: 8:21 error: use of undeclared type name `T::X::Y`
<anon>:8 fn foo<T>(_: T::X::Y) 
                      ^~~~~~~
@huonw huonw added the A-associated-items Area: Associated items (types, constants & functions) label Feb 10, 2015
@alexcrichton
Copy link
Member

I think this is a dupe of #20300 (not using as seems to be blocked on that bug)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-associated-items Area: Associated items (types, constants & functions)
Projects
None yet
Development

No branches or pull requests

2 participants