blob: 9915c53668f0d14a39acf94eebca82de2d65ced5 [file] [log] [blame]
// This test ensures that associated types don't crash rustdoc jump to def.
//@ compile-flags: -Zunstable-options --generate-link-to-definition
#![crate_name = "foo"]
//@ has 'src/foo/jump-to-def-ice-assoc-types.rs.html'
pub trait Trait {
type Node;
}
pub fn y<G: Trait>() {
struct X<G>(G);
impl<G: Trait> Trait for X<G> {
type Node = G::Node;
}
}